/**
 * DeshKaBasha Premium Patch (v2.1 — Black & Gold final)
 * Loaded AFTER style.css so these rules win.
 * - Gold "echo" ambiance on inner pages (keeps the wow, text stays readable)
 * - Mobile hero fix (stats/text always visible, no off-screen push)
 * - Lesson progress ring styles
 * - Reduced-motion accessibility
 */

/* Subtle gold + teal ambient glow fixed behind transparent sections.
   Very low opacity so reading text on white/cream stays perfectly clean. */
body {
    background-image:
        radial-gradient(50vw 50vw at 92% -8%, rgba(212, 168, 83, 0.07), transparent 60%),
        radial-gradient(45vw 45vw at -8% 108%, rgba(13, 148, 136, 0.05), transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* MOBILE HERO FIX — guarantee stats & text are always visible */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 96px 0 60px;
    }
    .hero-content {
        transform: none !important;
        opacity: 1 !important;
    }
    .hero-stats {
        margin-top: 8px;
    }
    .hero-stat .stat-number {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 84px 0 48px;
    }
    .hero-stats {
        gap: 14px 28px;
    }
}

/* ============================================
   LESSON PROGRESS RING (Sidebar widget)
   ============================================ */
.progress-widget { text-align: center; }

.progress-ring {
    --p: 0;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 4px auto 12px;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(212, 168, 83, 0.15) 0);
    position: relative;
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.18);
}

.progress-ring::before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--soft-white);
}

.progress-ring .progress-value {
    position: relative;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--gold-dark);
    letter-spacing: -0.02em;
}

.progress-label {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================
   ACCESSIBILITY — respect reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-bg { animation: none !important; }
}
