/**
 * Theme v2 — public UI refresh (Inter, cooler palette, cleaner chrome)
 * Loaded after public-layout + components.
 */

/* --- Global atmosphere --- */
body {
    font-family: var(--font-sans);
    background-color: #030712;
    background-image:
        radial-gradient(ellipse 100% 80% at 0% -20%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(167, 139, 250, 0.1), transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.06), transparent 50%);
    color: #f8fafc;
}

body[data-theme="light"] {
    background-color: #f8fafc;
    background-image:
        radial-gradient(ellipse 100% 80% at 0% -20%, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(99, 102, 241, 0.07), transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(14, 165, 233, 0.06), transparent 50%);
    color: #0f172a;
}

/* --- Sidebar: slimmer glass + accent rail --- */
.sidebar {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(2, 6, 23, 0.88) 100%);
    border-right: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
}

.logo-area {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

.nav-item {
    border-radius: var(--radius-md, 12px);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.12);
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.08));
    color: #e0f2fe;
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

[data-theme="light"] .nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(99, 102, 241, 0.08));
    color: #1e3a8a;
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.12);
}

/* --- Category pills --- */
.pill {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.pill:hover,
.pill.active {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 28px rgba(14, 165, 233, 0.25);
}

[data-theme="light"] .pill:hover,
[data-theme="light"] .pill.active {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
}

/* --- Hero spotlight --- */
.hero-spotlight {
    --hero-spotlight-image: url("https://images.unsplash.com/photo-1485846234645-a62644f84728?w=1600&q=80");
    position: relative;
    border-radius: var(--radius-xl, 20px);
    padding: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-elevated);
    background-image:
        linear-gradient(115deg, rgba(3, 7, 18, 0.94) 0%, rgba(15, 23, 42, 0.82) 42%, rgba(14, 165, 233, 0.12) 100%),
        var(--hero-spotlight-image);
    background-size: cover;
    background-position: center;
}

.hero-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-spotlight .hero-content {
    position: relative;
    z-index: 1;
    max-width: 40rem;
}

.hero-spotlight h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
    background: linear-gradient(100deg, #f8fafc 30%, #7dd3fc 70%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-spotlight p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}

.hero-spotlight .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    border: none;
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-spotlight .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .hero-spotlight .hero-cta {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.28);
}

/* Home trending rail: see assets/css/trending-home.css */
/* Latest releases + home grid/pagination: see assets/css/latest-home.css */

/* --- Main content breathing room --- */
.main-content {
    padding-top: clamp(1.5rem, 3vw, 2rem);
}
