/* ===========================
   English Conversation Master
   CSS Stylesheet
   =========================== */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.header:not(.scrolled) .logo {
    color: var(--white);
}

.header:not(.scrolled) .nav-link {
    color: rgba(255,255,255,0.85);
}

.header:not(.scrolled) .nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.header:not(.scrolled) .mobile-menu-btn span {
    background: var(--white);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-highlight {
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    border-left: 1px solid var(--gray-200);
    padding-left: 12px;
}

.lang-btn {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    color: var(--gray-500);
    transition: var(--transition);
    white-space: nowrap;
}

.lang-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
}

.header:not(.scrolled) .lang-switcher {
    border-left-color: rgba(255,255,255,0.3);
}

.header:not(.scrolled) .lang-btn {
    color: rgba(255,255,255,0.7);
}

.header:not(.scrolled) .lang-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.header:not(.scrolled) .lang-btn.active {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

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

.nav-link.nav-game {
    background: linear-gradient(135deg, #e94560, #a855f7);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
}

.nav-link.nav-game:hover {
    background: linear-gradient(135deg, #d63851, #9333ea);
    color: var(--white);
    transform: scale(1.05);
}

.header:not(.scrolled) .nav-link.nav-game {
    background: linear-gradient(135deg, #e94560, #a855f7);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 999;
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #DBEAFE 50%, #E0E7FF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===== Hero Video Section (fullscreen, no text) ===== */
.hero-video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-video-section .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-section .hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 100vh;
    min-width: 100vw;
    min-height: 56.25vw;
    border: 0;
}

/* Sound toggle button */
.hero-sound-btn {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.hero-sound-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Scroll down arrow */
.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-decoration: none;
}

.hero-scroll-down span {
    display: block;
    width: 28px;
    height: 28px;
    border-right: 3px solid rgba(255,255,255,0.7);
    border-bottom: 3px solid rgba(255,255,255,0.7);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ===== Hero Intro Section (text below video) ===== */
.hero-intro {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, #DBEAFE 50%, #E0E7FF 100%);
    text-align: center;
}

.hero-intro .hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-intro .hero-stats {
    justify-content: center;
}

.hero-intro .hero-buttons {
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== LEVEL CARDS ===== */
.level-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.level-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.level-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.level-card.featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
}

.level-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}

.level-popular {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
}

.level-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.level-badge {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.level-badge.beginner {
    background: #DCFCE7;
    color: #166534;
}

.level-badge.intermediate {
    background: #FEF3C7;
    color: #92400E;
}

.level-badge.adult {
    background: #DBEAFE;
    color: #1E40AF;
}

.level-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.level-desc {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.level-features {
    list-style: none;
    margin-bottom: 20px;
}

.level-features li {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 4px 0;
}

.level-cta {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ===== DAILY EXPRESSION TABS ===== */
.tab-group {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.daily-panel {
    display: none;
}

.daily-panel.active {
    display: block;
}

/* ===== EXPRESSION CARDS ===== */
.expression-cards {
    display: grid;
    gap: 20px;
}

.expression-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.expression-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.expression-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.expression-en {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.expression-ko {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.expression-usage {
    font-size: 0.88rem;
    color: var(--gray-600);
    background: var(--gray-50);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.expression-example {
    margin-bottom: 14px;
}

.example-dialog {
    background: var(--primary-light);
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.example-dialog p {
    font-size: 0.95rem;
    padding: 4px 0;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.speaker {
    font-weight: 700;
    margin-right: 6px;
}

.speaker.a {
    color: var(--primary);
}

.speaker.b {
    color: var(--secondary);
}

.btn-audio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 2px solid var(--gray-200);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.btn-audio:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-audio-sm {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition);
}

.btn-audio-sm:hover {
    opacity: 1;
}

/* ===== SITUATION CARDS ===== */
.situation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.situation-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.situation-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.situation-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.situation-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.situation-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.situation-level {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
}

.situation-level.beginner {
    background: #DCFCE7;
    color: #166534;
}

.situation-level.intermediate {
    background: #FEF3C7;
    color: #92400E;
}

.situation-level.adult {
    background: #DBEAFE;
    color: #1E40AF;
}

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 36px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.modal-level {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
}

.modal-body .dialog-block {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.dialog-block h4 {
    font-size: 0.88rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dialog-line {
    display: flex;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dialog-line .role {
    font-weight: 700;
    min-width: 80px;
    flex-shrink: 0;
}

.dialog-line .role.staff {
    color: var(--secondary);
}

.dialog-line .role.you {
    color: var(--primary);
}

.dialog-line .ko {
    color: var(--gray-400);
    font-size: 0.85rem;
    display: block;
    margin-top: 2px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ===== PRACTICE ===== */
.practice-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.practice-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.practice-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.practice-tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.practice-panel {
    display: none;
}

.practice-panel.active {
    display: block;
}

.quiz-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}

.quiz-progress {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    margin-bottom: 28px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.quiz-instruction {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    text-align: center;
}

.quiz-dialog {
    background: var(--primary-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

.quiz-dialog .blank {
    display: inline-block;
    min-width: 120px;
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    padding: 0 4px;
    margin: 0 4px;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-option {
    padding: 14px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.quiz-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.quiz-option.correct {
    border-color: var(--success);
    background: #DCFCE7;
    color: #166534;
}

.quiz-option.wrong {
    border-color: var(--danger);
    background: #FEE2E2;
    color: #991B1B;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.quiz-result {
    text-align: center;
    padding: 20px 0;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.result-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-explain {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.quiz-score {
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray-400);
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.quiz-context {
    text-align: center;
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* Order sentences */
.order-sentences {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.order-sentence {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    cursor: grab;
    transition: var(--transition);
    font-size: 0.95rem;
    user-select: none;
}

.order-sentence:hover {
    border-color: var(--primary);
}

.order-sentence.dragging {
    opacity: 0.5;
    border-color: var(--primary);
}

.order-sentence .drag-handle {
    color: var(--gray-400);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.order-sentence .order-num {
    background: var(--gray-200);
    color: var(--gray-600);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.result-correct-order {
    text-align: left;
    background: var(--primary-light);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-correct-order p {
    font-size: 0.92rem;
    padding: 4px 0;
}

/* ===== ROLEPLAY ===== */
.roleplay-container {
    max-width: 650px;
    margin: 0 auto;
}

.roleplay-scenario {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.roleplay-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.roleplay-scenario h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.roleplay-scenario p {
    font-size: 0.92rem;
    color: var(--gray-500);
}

.roleplay-chat {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: chatIn 0.4s ease;
}

@keyframes chatIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: var(--gray-100);
}

.chat-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-message.bot .chat-bubble {
    background: var(--gray-100);
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: var(--primary);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.roleplay-choices {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.choices-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 12px;
    font-weight: 600;
}

.choice-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
}

.choice-btn:last-child {
    margin-bottom: 0;
}

.choice-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.roleplay-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== TIPS ===== */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tip-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.tip-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tip-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.tip-card:hover .tip-number {
    color: var(--primary);
}

.tip-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tip-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.tip-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tip-difficulty {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 50px;
}

.tip-time {
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ===== TRACKER ===== */
.tracker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.tracker-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.tracker-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tracker-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.tracker-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.weekly-calendar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-day {
    width: 52px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.calendar-day .day-name {
    font-size: 0.7rem;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.calendar-day .day-num {
    font-size: 1rem;
    color: var(--gray-700);
}

.calendar-day.completed {
    background: var(--success);
    border-color: var(--success);
}

.calendar-day.completed .day-name,
.calendar-day.completed .day-num {
    color: var(--white);
}

.calendar-day.today {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 20px 0;
    text-align: center;
    font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .lang-switcher {
        border-left: none;
        padding-left: 0;
        margin-left: auto;
        margin-right: 8px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-video-section {
        height: 70vh;
    }

    .hero-sound-btn {
        bottom: 16px;
        right: 16px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .hero-scroll-down {
        bottom: 16px;
    }

    .hero-intro {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .level-cards {
        grid-template-columns: 1fr;
    }

    .situation-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .tracker-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.6rem;
    }

    .quiz-options {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }

    .modal {
        padding: 24px;
        border-radius: var(--radius-lg);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .tab-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .situation-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }

    .stat {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .weekly-calendar {
        gap: 6px;
    }

    .calendar-day {
        width: 42px;
        height: 54px;
    }
}
