/* Explain: Styles for the dark cinematic Video Hub UI, with added light section variations. */
/* ============================================================
   CareerNext — Video Hub (cinematic dark theme)
   Scoped prefix: vhx-  ·  tokens live on .vh-theme
   ============================================================ */

.vh-theme {
    --vh-bg: #0B0F19;
    --vh-bg-soft: #0F1626;
    --vh-panel: rgba(255, 255, 255, 0.045);
    --vh-border: rgba(255, 255, 255, 0.10);
    --vh-border-strong: rgba(255, 255, 255, 0.20);
    --vh-text: #E6EAF2;
    --vh-muted: #93A0B4;
    --vh-orange: #F5A623;
    --vh-orange-strong: #FFB733;
    --vh-navy: #0A192F;
    --vh-heading: 'Space Grotesk', 'Inter', sans-serif;

    --primary-color: #0A192F;
    --primary-hover: #112240;
    --navy-color: #0A192F;
    --accent-color: #F5A623;
    --yellow-color: #F5A623;
    --secondary-color: #0F1626;
    --text-color: #E6EAF2;
    --text-muted: #93A0B4;
    --border-color: rgba(255, 255, 255, 0.10);
}

.vh-theme h1,
.vh-theme h2,
.vh-theme h3,
.vh-theme h4,
.vh-theme .vhx-stat-value {
    font-family: var(--vh-heading);
}

.is-hidden {
    display: none !important;
}

/* Page canvas */
.vhx-page {
    position: relative;
    background:
        radial-gradient(1100px 520px at 84% -8%, rgba(245, 166, 35, 0.10), transparent 60%),
        radial-gradient(900px 520px at 6% 3%, rgba(20, 60, 120, 0.28), transparent 62%),
        var(--vh-bg);
    color: var(--vh-text);
}

.vhx-section {
    padding: 3.5rem 1.25rem;
}
@media (min-width: 640px) {
    .vhx-section { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
    .vhx-section { padding: 5rem 2.5rem; }
}
.vhx-wrap { max-width: 80rem; margin: 0 auto; }

/* ---------- Hero spotlight ---------- */
.vhx-hero {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 1.25rem 2.75rem;
    border-bottom: 1px solid var(--vh-border);
    background:
        radial-gradient(circle at 80% 18%, rgba(245, 166, 35, 0.16), transparent 52%),
        radial-gradient(circle at 10% 6%, rgba(30, 90, 170, 0.34), transparent 58%),
        linear-gradient(160deg, #0A192F 0%, #0B0F19 78%);
}
@media (min-width: 640px) {
    .vhx-hero { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
    .vhx-hero { padding: 4.5rem 2.5rem 3.25rem; }
}
.vhx-hero-inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 1024px) {
    .vhx-hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}
.vhx-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.10);
    padding: 0.45rem 0.95rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vh-orange);
}
.vhx-hero-title {
    margin: 1.25rem 0 0;
    font-size: clamp(2rem, 5.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.vhx-hero-sub {
    margin: 1.25rem 0 0;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--vh-muted);
}
.vhx-hero-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* ---------- Buttons ---------- */
.vhx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.85rem 1.6rem;
    border-radius: 0.7rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.vhx-btn-primary {
    background: linear-gradient(135deg, #F5A623, #E8901A);
    color: #0A192F;
    box-shadow: 0 14px 34px rgba(245, 166, 35, 0.32);
}
.vhx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(245, 166, 35, 0.45);
}
.vhx-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--vh-border-strong);
    color: #ffffff;
}
.vhx-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}
.vhx-btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
}
.vhx-btn-outline-light:hover {
    background: #ffffff;
    color: #0A192F;
    transform: translateY(-2px);
}

/* ---------- Filter pills ---------- */
.vhx-pills {
    position: relative;
    max-width: 80rem;
    margin: 2.75rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}
.vhx-pill {
    border: 1px solid var(--vh-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--vh-muted);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease, box-shadow 250ms ease;
}
.vhx-pill:hover {
    color: #ffffff;
    border-color: var(--vh-border-strong);
    background: rgba(255, 255, 255, 0.07);
}
.vhx-pill.is-active {
    background: linear-gradient(135deg, #F5A623, #E8901A);
    color: #0A192F;
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(245, 166, 35, 0.35);
}

/* ---------- Media frames + play overlay ---------- */
.vhx-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}
.vhx-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000000;
    transition: transform 550ms ease;
}
.vhx-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.10), rgba(10, 25, 47, 0.62));
    transition: opacity 300ms ease;
}
.vhx-play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding-left: 0.25rem;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.95);
    color: #0A192F;
    font-size: 1.05rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(245, 166, 35, 0.16);
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.vhx-hero-frame {
    border-radius: 1.25rem;
    border: 1px solid var(--vh-border-strong);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.vhx-hero-frame .vhx-play {
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.05), rgba(10, 25, 47, 0.45));
}

/* ---------- Cards ---------- */
.vhx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.1rem;
    border: 1px solid var(--vh-border);
    background: var(--vh-panel);
    backdrop-filter: blur(10px);
    transition: transform 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
}
.vhx-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 166, 35, 0.22);
}
.vhx-card:hover .vhx-video { transform: scale(1.06); }
.vhx-card:hover .vhx-play-badge { transform: scale(1.12); }
.vhx-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.15rem 1.25rem 1.35rem;
}
.vhx-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.10);
    padding: 0.28rem 0.7rem;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--vh-orange);
}
.vhx-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}
.vhx-card-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--vh-muted);
}
.vhx-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Placeholder-ready boxes */
.vhx-card.is-placeholder .vhx-video { filter: grayscale(0.4) brightness(0.55); }
.vhx-card.is-placeholder:hover .vhx-video { transform: scale(1.04); }
.vhx-soon {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.35), rgba(10, 25, 47, 0.72));
}
.vhx-soon span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--vh-border-strong);
    background: rgba(10, 25, 47, 0.72);
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

/* ---------- Horizontal shelf ---------- */
.vhx-shelf {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.35rem 0.25rem 1.1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 166, 35, 0.55) transparent;
}
.vhx-shelf::-webkit-scrollbar { height: 8px; }
.vhx-shelf::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); border-radius: 999px; }
.vhx-shelf::-webkit-scrollbar-thumb { background: rgba(245, 166, 35, 0.55); border-radius: 999px; }
.vhx-shelf > .vhx-card {
    flex: 0 0 auto;
    width: 82%;
    max-width: 21rem;
    scroll-snap-align: start;
}
@media (min-width: 640px) { .vhx-shelf > .vhx-card { width: 55%; } }
@media (min-width: 1024px) { .vhx-shelf > .vhx-card { width: 23rem; } }

/* ---------- Grid + section headers ---------- */
.vhx-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .vhx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vhx-head { margin-bottom: 2rem; }
.vhx-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--vh-orange);
}
.vhx-title {
    margin: 0.65rem 0 0;
    font-size: clamp(1.5rem, 3.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.vhx-sub {
    margin: 0.6rem 0 0;
    max-width: 44rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--vh-muted);
}

/* ---------- Glassmorphism stats bar ---------- */
.vhx-stats {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--vh-border-strong);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(14px);
    padding: 2.5rem 1.5rem;
}
.vhx-stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 0%, rgba(245, 166, 35, 0.16), transparent 46%);
    pointer-events: none;
}
.vhx-stats-grid {
    position: relative;
    display: grid;
    gap: 1.75rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
}
@media (min-width: 768px) {
    .vhx-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vhx-stat-value {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}
.vhx-stat-label {
    margin: 0.55rem 0 0;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--vh-muted);
}

/* ---------- Immersive CTA banner ---------- */
.vhx-cta {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    padding: 3rem 1.5rem;
    text-align: center;
    border: 1.5px solid transparent;
    background:
        linear-gradient(145deg, #0A192F 0%, #0B0F19 74%) padding-box,
        linear-gradient(120deg, rgba(245, 166, 35, 0.95), rgba(30, 90, 170, 0.75), rgba(245, 166, 35, 0.55)) border-box;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}
@media (min-width: 640px) {
    .vhx-cta { padding: 4rem 2.5rem; }
}
.vhx-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(245, 166, 35, 0.22), transparent 58%);
    pointer-events: none;
}
.vhx-cta-inner {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}
.vhx-cta-title {
    margin: 1rem 0 0;
    font-size: clamp(1.8rem, 4.4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.vhx-cta-sub {
    margin: 1rem auto 0;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--vh-muted);
}
.vhx-cta-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
}

/* ---------- Immersive video lightbox ---------- */
.vhx-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms ease, visibility 300ms ease;
}
.vhx-modal.is-open {
    visibility: visible;
    opacity: 1;
}
.vhx-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 14, 0.86);
    backdrop-filter: blur(8px);
}
.vhx-modal-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 60rem;
    transform: translateY(14px) scale(0.98);
    transition: transform 350ms ease;
}
.vhx-modal.is-open .vhx-modal-panel {
    transform: translateY(0) scale(1);
}
.vhx-modal-frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--vh-border-strong);
    background: #000000;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.vhx-modal-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}
.vhx-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid var(--vh-border-strong);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 250ms ease, color 250ms ease;
}
.vhx-modal-close:hover {
    background: #F5A623;
    color: #0A192F;
}
.vhx-modal-title {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vh-text);
}

@media (prefers-reduced-motion: reduce) {
    .vhx-video,
    .vhx-card,
    .vhx-play-badge,
    .vhx-btn,
    .vhx-modal-panel { transition: none; }
    .vhx-card:hover,
    .vhx-card:hover .vhx-video { transform: none; }
}

/* ============================================================
   Alternating light / dark section rhythm
   ============================================================ */
.vhx-section--light {
    background: #F8FAFC;
    color: #0F172A;
}

.vhx-section--light .vhx-head .vhx-kicker {
    color: #D97706;
}

.vhx-section--light .vhx-head .vhx-title {
    color: #0A192F;
}

.vhx-section--light .vhx-head .vhx-sub {
    color: #64748B;
}

.vhx-section--light .vhx-card {
    background: #ffffff;
    border-color: rgba(10, 25, 47, 0.10);
    box-shadow: 0 12px 30px rgba(10, 25, 47, 0.07);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.vhx-section--light .vhx-card:hover {
    border-color: rgba(245, 166, 35, 0.65);
    box-shadow: 0 26px 50px rgba(10, 25, 47, 0.16), 0 0 0 1px rgba(245, 166, 35, 0.22);
}

.vhx-section--light .vhx-card-title {
    color: #0A192F;
}

.vhx-section--light .vhx-card-desc {
    color: #64748B;
}

.vhx-section--light .vhx-card-meta {
    color: #94A3B8;
}

.vhx-section--light .vhx-tag {
    background: rgba(245, 166, 35, 0.16);
    border-color: rgba(217, 119, 6, 0.35);
    color: #B45309;
}

.vhx-section--light .vhx-shelf {
    scrollbar-color: rgba(245, 166, 35, 0.7) rgba(10, 25, 47, 0.08);
}

.vhx-section--light .vhx-shelf::-webkit-scrollbar-track {
    background: rgba(10, 25, 47, 0.08);
}

/* Keep the bottom CTA card dark while its section sits on a light background */
.vhx-section--light .vhx-cta {
    color: #ffffff;
}

.vhx-section--light .vhx-cta .vhx-kicker {
    color: var(--vh-orange);
}

.vhx-section--light .vhx-cta-sub {
    color: var(--vh-muted);
}

/* ============================================================
   Light hero variant — solid white background with dark text
   Scoped to the Video Hub hero segment only.
   ============================================================ */
.vhx-hero--light {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(10, 25, 47, 0.10);
}

.vhx-hero--light .vhx-hero-title {
    color: #0F172A;
}

.vhx-hero--light .vhx-hero-sub {
    color: #475569;
}

.vhx-hero--light .vhx-featured-badge {
    border-color: rgba(217, 119, 6, 0.40);
    background: rgba(245, 166, 35, 0.14);
    color: #B45309;
}

.vhx-hero--light .vhx-hero-frame {
    border-color: rgba(10, 25, 47, 0.12);
    box-shadow: 0 24px 60px rgba(10, 25, 47, 0.18);
}

.vhx-hero--light .vhx-btn-ghost {
    background: rgba(10, 25, 47, 0.04);
    border-color: rgba(10, 25, 47, 0.18);
    color: #0F172A;
}

.vhx-hero--light .vhx-btn-ghost:hover {
    background: rgba(10, 25, 47, 0.10);
}

.vhx-hero--light .vhx-pill {
    border-color: rgba(10, 25, 47, 0.14);
    background: rgba(10, 25, 47, 0.03);
    color: #475569;
}

.vhx-hero--light .vhx-pill:hover {
    color: #0F172A;
    border-color: rgba(10, 25, 47, 0.30);
    background: rgba(10, 25, 47, 0.07);
}

.vhx-hero--light .vhx-pill.is-active {
    background: linear-gradient(135deg, #F5A623, #E8901A);
    color: #0A192F;
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(245, 166, 35, 0.35);
}