@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #FF6B6B; /* Soft Red/Pink */
    --primary-dark: #E55050;
    --secondary: #4ECDC4; /* Teal */
    --secondary-dark: #36B4AC;
    --accent: #FFE66D; /* Yellow */
    --accent-dark: #FBC02D;
    --nature: #2ECC71; /* Emerald Green */
    --fun: #F38181; /* Coral */
    --purple: #6C5CE7; /* Deep Violet */
    --bg: #F8FAF9;
    --white: #ffffff;
    --text: #2D3436;
    --gray: #636E72;
    --light-gray: #EDF2F7;
    --radius: 24px;
    --shadow: 0 12px 30px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', 'Outfit', sans-serif;
}

body {
    background-image: url('bg_forest.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.4;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* App Container - Full-screen Desktop Responsive Website Canvas */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 100vh;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container.wide {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 100vh;
}

/* Typography */
h1 { font-weight: 700; font-size: 1.8rem; color: var(--primary); text-shadow: 1px 1px 0 white; }
h2 { font-weight: 600; font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--fun); }
h3 { font-weight: 600; font-size: 1.1rem; color: var(--secondary); margin-top: 10px; }
p { font-size: 0.95rem; color: var(--gray); }

/* Buttons - Playful 3D */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    text-align: center;
    width: 100%;
    margin-bottom: 0.8rem;
    position: relative;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 0 var(--primary-dark);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--primary-dark);
}
.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 0 var(--primary-dark);
}

.btn-secondary {
    background: var(--accent);
    color: #5D4037;
    box-shadow: 0 4px 0 var(--accent-dark);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--accent-dark);
}

.btn-teal {
    background: var(--secondary);
    color: white;
    box-shadow: 0 4px 0 var(--secondary-dark);
}
.btn-purple {
    background: var(--purple);
    color: white;
    box-shadow: 0 4px 0 #4B38B3;
}

/* Cards & Containers */
.card {
    background: var(--white);
    padding: 16px;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 3px solid #F0F0F0;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card:hover {
    border-color: #E2E8F0;
}

.card.pop:hover {
    transform: translateY(-8px);
}

/* 6 Sintaks Stepper Bar */
.sintaks-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px 14px;
    border-radius: 16px;
    margin-bottom: 15px;
    border: 2px solid #E2E8F0;
    gap: 4px;
}

.sintaks-step {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #A0AEC0;
    background: #F7FAFC;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sintaks-step.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary-dark);
    box-shadow: 0 3px 0 var(--primary-dark);
}

.sintaks-step.done {
    background: #C6F6D5;
    color: #22543D;
    border-color: #9AE6B4;
}

/* Badges for Literasi Kritis Level 1-4 */
.badge-level {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.badge-l1 { background: #EBF8FF; color: #2B6CB0; border: 1px solid #BEE3F8; }
.badge-l2 { background: #FEFCBF; color: #744210; border: 1px solid #FAF089; }
.badge-l3 { background: #E9D8FD; color: #553C9A; border: 1px solid #D6BCFA; }
.badge-l4 { background: #C6F6D5; color: #22543D; border: 1px solid #9AE6B4; }

/* Mascot Speech Box */
.mascot-box {
    background: #FFF5F5;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 15px;
    position: relative;
    border: 3px solid #FEB2B2;
}

.mascot-box::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 24px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid #FEB2B2;
}

/* Kartu Refleksi Aksi Siswa */
.action-card {
    background: #FAF5FF;
    border: 3px dashed #B794F4;
    border-radius: 20px;
    padding: 16px;
    margin-top: 15px;
}

.action-card input, .action-card textarea, .action-card select {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #E9D8FD;
    font-family: inherit;
    font-size: 0.9rem;
    margin-top: 6px;
    margin-bottom: 12px;
    outline: none;
}
.action-card input:focus, .action-card textarea:focus {
    border-color: var(--purple);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.pulse { animation: pulse 2.5s infinite ease-in-out; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
.float { animation: float 3s ease-in-out infinite; }

@keyframes pop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.pop { animation: pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

/* Nav Bar Bottom */
/* Top Navbar - Desktop Header Style */
.nav-bar {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    border-bottom: 3px solid #EDF2F7;
    z-index: 100;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 12px;
}

.nav-item:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.nav-item.active {
    color: white;
    background: var(--primary);
}

/* Responsive Grid & Columns for Website Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.col-6 {
    flex: 1;
    min-width: 300px;
}

.col-4 {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 250px;
}

.col-12 {
    width: 100%;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        min-height: 100vh;
    }
    .col-4, .col-6 {
        flex: 1 0 100%;
    }
    .nav-bar {
        padding: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 24px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 4px solid var(--accent);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}
