/* ── Animations ─────────────────────────────────────────── */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fade-in 0.3s ease-out; }

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.anim-hero { opacity: 0; animation: fade-in-up 0.5s ease-out forwards; }
.anim-hero-1 { animation-delay: 0s; }
.anim-hero-2 { animation-delay: 0.1s; }
.anim-hero-3 { animation-delay: 0.2s; }
.anim-hero-4 { animation-delay: 0.25s; }
.anim-hero-5 { animation-delay: 0.35s; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(81,207,102,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(81,207,102,0); }
}
.animate-correct { animation: pulse-green 0.5s ease-out; }

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%,75% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}
.animate-wrong { animation: shake 0.4s ease-out; }

/* Highlighted phrase in context */
mark {
    background-color: #fce7f3;
    color: #9d174d;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

/* ── Hero background (old — kept for lesson pages etc.) ── */
.hero-bg {
    background: linear-gradient(135deg, #1a1625 0%, #0f0d15 50%, #1e1233 100%);
    position: relative;
}
.hero-bg::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.25), transparent 70%);
    top: -150px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}
.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.2), transparent 70%);
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* ── Homepage hero redesign ────────────────────────────── */
.hero-redesign {
    background: linear-gradient(180deg,
        #1a0a2e 0%,
        #2d1350 25%,
        #6b1d5e 50%,
        #c2185b 75%,
        #ec4899 90%,
        #f9a8d4 100%
    );
    position: relative;
}
.hero-redesign::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(233,30,140,0.18), transparent 70%);
    top: -100px;
    right: -150px;
    pointer-events: none;
}
.hero-redesign::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(249,168,212,0.3));
    pointer-events: none;
}

/* ── Teaser card ───────────────────────────────────────── */
.teaser-card {
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-radius: 24px;
    overflow: hidden;
}
.teaser-lang-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ec4899;
    margin-bottom: 12px;
}
.teaser-expression {
    font-size: 30px;
    font-weight: 700;
    color: #1e1b3a;
    line-height: 1.2;
    margin-bottom: 8px;
}
.teaser-prompt {
    font-size: 15px;
    color: #8e8aa0;
}
@media (max-width: 767px) {
    .teaser-expression { font-size: 24px; }
    .teaser-card-left { border-bottom: 1px solid #f3e8f0; }
}

/* ── Teaser answer options ─────────────────────────────── */
.teaser-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1e1b3a;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.teaser-option:hover {
    border-color: #ec4899;
    background: #fdf2f8;
    color: #9d174d;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(236,72,153,0.12);
}
.teaser-option.correct {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #166534;
    transform: translateX(4px);
}
.teaser-option.correct::after {
    content: '✓';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #22c55e;
    font-size: 16px;
}
.teaser-option.wrong {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}
.teaser-option.dimmed {
    opacity: 0.4;
    pointer-events: none;
}
.teaser-option.answered {
    pointer-events: none;
    cursor: default;
}
.teaser-option.answered:hover {
    transform: none;
    box-shadow: none;
}

/* ── Teaser navigation arrows ──────────────────────────── */
.teaser-nav-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.teaser-nav-arrow:hover {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* ── Notification banner ───────────────────────────────── */
.notify-banner {
    background: linear-gradient(135deg, #2d1350 0%, #6b1d5e 100%);
    position: relative;
}
.notify-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #ec4899);
}

/* ── Value prop cards ──────────────────────────────────── */
.value-card {
    position: relative;
    transition: all 0.3s ease;
}
.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.value-card:hover::before {
    opacity: 1;
}
.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233,30,140,0.12);
}

/* ── Cookie slide-up ───────────────────────────────────── */
@keyframes slide-up {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}
.cookie-slide-up { animation: slide-up 0.4s ease-out; }

/* ── Confetti burst (lesson complete) ──────────────────── */
@keyframes confetti-fall {
    0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(60vh) rotate(720deg); opacity: 0; }
}
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall 2.5s ease-out forwards;
}

/* ── Scroll snap for mobile carousel ───────────────────── */
.snap-x { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.snap-center { scroll-snap-align: center; }

/* ── Quiz slide-down animation ─────────────────────────── */
@keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Language filter tabs ──────────────────────────────── */
.filter-tab {
    background: white;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}
.filter-tab:hover {
    background: #f9fafb;
    color: #374151;
    border-color: #d1d5db;
}
.filter-tab.active {
    background: #1f2937;
    color: white;
    border-color: #1f2937;
}

/* ── Line clamp utility ────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

