/* ── COURSES VIEW PREMIUM STYLES ── */
:root {
    --color-primary: #0f172a;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-warning: #f59e0b;
    --color-success: #059669;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-bg-light: #f8fafc;
    --shadow-premium: 0 40px 80px -20px rgba(15, 23, 42, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }
body { color: var(--color-text-main); background: #ffffff; }

/* ── Accessibility ───────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: white;
    padding: 10px 20px;
    z-index: 9999;
    transition: top 0.3s;
    font-weight: 800;
    text-decoration: none;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { top: 0; }

:focus-visible { 
    outline: 3px solid var(--color-warning) !important; 
    outline-offset: 4px !important; 
    border-radius: 4px;
}

/* ── Immersive Hero ─────────────────────────────────────── */
.hero-area {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: white;
    padding: 6rem 0 7rem;
    position: relative;
    overflow: hidden;
}
.hero-area::before {
    content: '';
    position: absolute;
    top: -10%; left: -5%;
    width: 40%; height: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.hero-area::after {
    content: '';
    position: absolute;
    bottom: -10%; right: -5%;
    width: 40%; height: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 700px;
}

/* ── Glassmorphism Stats ────────────────────────────────── */
.glass-stat {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}
.glass-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ── Mentor Premium Card ────────────────────────────────── */
.mentor-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 8px 24px 8px 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.mentor-box:hover { 
    background: rgba(255, 255, 255, 0.08); 
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}
.mentor-img { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid var(--color-warning); 
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

/* ── Price Card (Sticky Sidebar) ───────────────────────── */
.price-card {
    position: sticky;
    top: 100px;
    border: none;
    border-radius: 28px;
    box-shadow: var(--shadow-premium);
    background: #ffffff;
    overflow: hidden;
    z-index: 10;
    transition: transform 0.3s ease;
}

.price-card-thumb-wrap {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.price-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.price-card:hover .price-card-thumb { transform: scale(1.08); }

.btn-play-lg {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.btn-play-lg:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.purchase-btn {
    transition: all 0.3s;
}
.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ── Tab Navigation (Sleek) ────────────────────────────── */
.tab-nav-modern {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 100px;
    display: inline-flex;
    gap: 6px;
    border: 1px solid #e2e8f0;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}
.tab-nav-modern::-webkit-scrollbar { display: none; }

.tab-nav-modern .nav-link {
    border-radius: 100px;
    padding: 12px 24px;
    font-weight: 700;
    color: var(--color-text-muted);
    border: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}
.tab-nav-modern .nav-link:hover {
    color: var(--color-primary);
}
.tab-nav-modern .nav-link.active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 8px 15px -3px rgba(15, 23, 42, 0.2);
}

/* ── Curriculum & Accordions ───────────────────────────── */
.accordion-modern .accordion-item {
    border: 1px solid #eef2f6;
    background: #ffffff;
    border-radius: 16px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.accordion-modern .accordion-item:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.accordion-modern .accordion-button {
    background: #ffffff !important;
    box-shadow: none !important;
    color: var(--color-primary) !important;
    padding: 1.25rem 1.5rem;
    font-weight: 800;
}
.accordion-modern .accordion-button:not(.collapsed) {
    border-bottom: 1px solid #f1f5f9;
}

.lesson-row {
    padding: 0.875rem 1.25rem;
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    border: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}
.lesson-row:hover { 
    border-color: var(--color-accent); 
    background: #f0f7ff;
    transform: translateX(4px);
}

/* ── Ratings & Reviews ────────────────────────────────── */
.rating-stars { color: var(--color-warning); font-size: 0.9rem; }
.review-card {
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-5px); }

/* ── Sticky Sidebar Recommendations ───────────────────── */
.recommend-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
}
.recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--color-accent);
}

/* ── Utilities ─────────────────────────────────────────── */
.syne { font-family: 'Syne', sans-serif; }
.fw-900 { font-weight: 900; }
.ls-1 { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.x-small { font-size: 0.75rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Pulse Animation ───────────────────────────────────── */
.pulse-primary { animation: pulse-primary-anim 2s infinite; }
@keyframes pulse-primary-anim {
    0%   { box-shadow: 0 0 0  0    rgba(37, 99, 235, 0.4); }
    70%  { box-shadow: 0 0 0 20px  rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0  0    rgba(37, 99, 235, 0); }
}

/* ── Modal Improvements ────────────────────────────────── */
.rounded-5 { border-radius: 2rem !important; }
.modal-backdrop.show { opacity: 0.7; backdrop-filter: blur(4px); }

/* ── Mobile Overrides ──────────────────────────────────── */
@media (max-width: 991px) {
    .price-card { 
        position: relative; 
        top: 0; 
        margin-top: -120px; 
        box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    }
    .hero-area { padding-bottom: 12rem; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .breadcrumb { justify-content: center; }
    .mentor-box { justify-content: center; margin-left: auto; margin-right: auto; }
}

@media (max-width: 576px) {
    .hero-area { padding-top: 4rem; padding-bottom: 10rem; }
    .price-card { margin-top: -100px; border-radius: 20px; }
    .price-card-thumb-wrap { height: 200px; }
    .tab-nav-modern .nav-link { padding: 10px 18px; font-size: 0.9rem; }
}
