:root {
    /* Modern Mediterranean Palette */
    --color-bg: #F5F1E8;
    /* Beige background */
    --color-text: #4A3B32;
    /* Dark brown text */
    --color-text-light: #8C7E72;
    --color-white: #FFFFFF;

    /* Theme Colors */
    --color-teal: #00A896;
    --color-red: #E75A5A;
    --color-yellow: #EBC944;
    --color-blue: #2D89EF;
    --color-green: #27AE60;
    --color-pink: #D67BB1;
    --color-purple: #9B59B6;
    --color-orange: #E67E22;

    --color-success: #27AE60;
    --color-error: #C0392B;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-main: 'Inter', sans-serif;
}

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

/* Due Badge - now integrated into card design */
.due-badge {
    display: none;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--color-white);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2C3E50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    display: flex;
    align-items: center;
}

.nav-back-btn {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-back-btn:hover {
    color: var(--color-teal);
}

.nav-back-btn.hidden {
    display: none;
}

.profile-link {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-text);
}

.profile-link {
    color: var(--color-text-light);
}

/* Main */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hidden {
    display: none !important;
}

h1 {
    font-weight: 800;
    color: #3E2723;
    /* Dark Brown */
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* Section Header */
.section-header {
    margin-bottom: 1.5rem;
}

.section-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #3D2C25;
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* Deck Grid */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.deck-card {
    padding: 1.5rem;
    padding-bottom: 3.5rem;
    /* Make space for the badge */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    /* Allow height to grow if needed, or keep fixed but ensure space */
    min-height: 200px;
    /* Increased min-height */
    justify-content: flex-start;
    /* Align content to top */
    overflow: hidden;
    color: white;
}

.deck-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.deck-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

.deck-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.deck-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 0;
    /* Reset margin */
}

.deck-card-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: white;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Theme Colors */
.deck-card.theme-teal {
    background-color: var(--color-teal);
}

.deck-card.theme-red {
    background-color: var(--color-red);
}

.deck-card.theme-yellow {
    background-color: var(--color-yellow);
}

.deck-card.theme-blue {
    background-color: var(--color-blue);
}

.deck-card.theme-green {
    background-color: var(--color-green);
}

.deck-card.theme-pink {
    background-color: var(--color-pink);
}

.deck-card.theme-purple {
    background-color: var(--color-purple);
}

.deck-card.theme-orange {
    background-color: var(--color-orange);
}

/* Adjustments for yellow card */
.deck-card.theme-yellow {
    color: #5D4037;
}

.deck-card.theme-yellow .deck-icon-circle {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Flashcard View */
#flashcard-view {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.card-container {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    width: 100%;
    height: 500px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    gap: 1rem;
    overflow: hidden;
}

/* Card Front - Warm Cream with Texture */
.card-front {
    background: linear-gradient(135deg, #FFF9F0 0%, #F5EDE0 100%);
    border: 2px solid rgba(139, 107, 74, 0.15);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* When card is flipped, hide front face completely (iOS Safari fix) */
.card.flipped .card-front {
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
}

/* When card is not flipped, hide back face completely (iOS Safari fix) */
.card:not(.flipped) .card-back {
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
}

/* Show faces immediately when becoming visible */
.card:not(.flipped) .card-front {
    visibility: visible;
    transition: visibility 0s linear 0s;
}

.card.flipped .card-back {
    visibility: visible;
    transition: visibility 0s linear 0s;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 107, 74, 0.02) 2px, rgba(139, 107, 74, 0.02) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 107, 74, 0.02) 2px, rgba(139, 107, 74, 0.02) 4px);
    pointer-events: none;
    opacity: 0.6;
}

/* Decorative corner flourishes on front */
.card-front::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    border-top: 3px solid rgba(230, 155, 0, 0.25);
    border-left: 3px solid rgba(230, 155, 0, 0.25);
    border-radius: 4px 0 0 0;
    pointer-events: none;
}

.card-front #card-front-text {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #3E2723;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1;
    position: relative;
    margin-top: 1rem;
}

/* Card Back - Soft Sage/Green Tint */
.card-back {
    background: linear-gradient(135deg, #F0F6F0 0%, #E8F2E8 100%);
    border: 2px solid rgba(39, 174, 96, 0.15);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotateY(180deg) translateZ(0);
    transform: rotateY(180deg) translateZ(0);
    justify-content: center;
    padding: 2.5rem;
}

.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(39, 174, 96, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Decorative corner on card back (bottom-right) */
.card-back::after {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-bottom: 3px solid rgba(39, 174, 96, 0.2);
    border-right: 3px solid rgba(39, 174, 96, 0.2);
    border-radius: 0 0 4px 0;
    pointer-events: none;
}

/* Audio Button - Elegant, Integrated Detail */
.audio-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(230, 155, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.audio-btn:hover {
    transform: scale(1.1);
    border-color: rgba(230, 155, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(230, 155, 0, 0.2);
}

.audio-btn:active {
    transform: scale(0.95);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E69B00 0%, #F4B942 100%);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 8px rgba(230, 155, 0, 0.4);
}

/* Back Button */
.icon-btn {
    background: var(--color-white);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
}

.icon-btn:hover {
    background: #FAFAFA;
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateX(-4px);
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    z-index: 1;
    position: relative;
}

.quiz-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(74, 144, 226, 0.2);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-main);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.quiz-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.quiz-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(45, 137, 239, 0.4);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 6px 16px rgba(45, 137, 239, 0.15),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.quiz-btn:active {
    transform: translateY(0) scale(0.99);
}

.quiz-btn.correct {
    background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
    border-color: #1B8E4B;
    box-shadow:
        0 4px 12px rgba(39, 174, 96, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.02);
}

.quiz-btn.correct::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
}

.quiz-btn.incorrect {
    background: linear-gradient(135deg, #E75A5A 0%, #ED6B6B 100%);
    border-color: #C0392B;
    box-shadow:
        0 4px 12px rgba(231, 90, 90, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: white;
}

.quiz-btn.incorrect::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
}

.controls {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.btn {
    flex: 1;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-main);
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: linear-gradient(135deg, #2D89EF 0%, #4A9FF5 100%);
    color: var(--color-white);
    box-shadow:
        0 6px 0 #1565C0,
        0 8px 16px rgba(45, 137, 239, 0.3);
    border: 2px solid transparent;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 0 #1565C0,
        0 12px 20px rgba(45, 137, 239, 0.4);
}

.btn.primary:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 #1565C0,
        0 4px 8px rgba(45, 137, 239, 0.3);
}

.btn.secondary {
    background: var(--color-white);
    color: var(--color-text);
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 4px 0 rgba(0, 0, 0, 0.08),
        0 6px 12px rgba(0, 0, 0, 0.05);
}

.btn.secondary:hover {
    background: #FAFAFA;
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.08);
}

.btn.secondary:active {
    transform: translateY(2px);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.05);
}

/* Feedback Message */
.feedback-message {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: 80%;
    max-width: 400px;
    background: linear-gradient(135deg, #F3E5C2 0%, #F5EDE0 100%);
    border: 2px solid rgba(230, 155, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
    padding: 2rem;
    text-align: center;
}

.modal-header h2 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Card Flip Enhancement - animations disabled for iOS compatibility */
/*
.card-front {
    animation: cardEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-back {
    animation: cardBackEntrance 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0) translateZ(0);
    }
}

@keyframes cardBackEntrance {
    from {
        opacity: 0;
        transform: rotateY(180deg) scale(0.9) translateY(20px) translateZ(0);
    }

    to {
        opacity: 1;
        transform: rotateY(180deg) scale(1) translateY(0) translateZ(0);
    }
}
*/


/* Microphone Button */
.mic-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(230, 155, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.mic-btn:hover {
    transform: scale(1.1);
    border-color: rgba(230, 155, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(230, 155, 0, 0.2);
}

.mic-btn:active {
    transform: scale(0.95);
}

.mic-btn.listening {
    background-color: #E75A5A;
    color: white;
    animation: pulse 1.5s infinite;
    border-color: #C0392B;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 90, 90, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(231, 90, 90, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 90, 90, 0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .deck-grid {
        grid-template-columns: 1fr;
    }

    .card-container {
        height: 450px;
    }

    .card-face {
        padding: 2rem;
    }

    .card-front {
        padding: 2.5rem 2rem;
    }

    .card-back {
        padding: 2rem 1.75rem;
    }

    .card-front #card-front-text {
        font-size: 2rem;
    }

    .card-front::after,
    .card-back::after {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    .audio-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .mic-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 1.5rem;
        left: 1.5rem;
    }

    .quiz-options {
        gap: 0.65rem;
    }

    .quiz-btn {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: none;
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-full);
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
    color: var(--color-text);
}

.language-btn:hover:not(:disabled) {
    border-color: var(--color-text);
    background-color: rgba(0, 0, 0, 0.03);
}

.language-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    min-width: 140px;
    z-index: 100;
}

.language-dropdown.hidden {
    display: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.95rem;
    color: var(--color-text);
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option.active {
    background-color: rgba(0, 168, 150, 0.1);
    font-weight: 600;
}

.language-option .flag {
    font-size: 1.2rem;
}

/* Language Selection Modal */
.language-modal-content {
    max-width: 400px;
    text-align: center;
}

.language-modal-content .modal-header h2 {
    font-size: 1.5rem;
    color: var(--color-text);
}

.language-choices {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
}

.language-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-bg);
}

.language-choice:hover {
    border-color: var(--color-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.language-choice .flag {
    font-size: 3rem;
}

.language-choice .name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Level Filter Chips */
.level-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-chip {
    background: var(--color-white);
    border: 2px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-full);
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
    box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
    border-color: var(--color-teal);
    color: var(--color-text);
}

.filter-chip.active {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 168, 150, 0.35);
}

.filter-chip.active:hover {
    background: #009688;
    border-color: #009688;
}