/* ============================================
   HELP VIDEOS - Professional Layout
   Matches Landing Page Design System
   ============================================ */

:root {
    --navy-900: #0a1628;
    --navy-800: #0f1f3d;
    --navy-700: #162d54;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.07);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--gray-50);
    overflow-x: hidden;
}

/* ========================================
   Navbar (identical to landing page)
   ======================================== */
.lp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.lp-nav.scrolled {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--gray-200);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.lp-nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-brand { text-decoration: none; display: flex; align-items: center; }
.lp-brand-logo { height: 50px; width: auto; }

.lp-nav-links { display: flex; align-items: center; gap: 4px; }

.lp-nav-link {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    letter-spacing: -0.1px;
}

.lp-nav-link i {
    font-size: 13px;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.lp-nav-link:hover {
    color: var(--navy-800);
    background: var(--gray-100);
}

.lp-nav-link:hover i { opacity: 1; }

.lp-nav-link.active { color: var(--blue-600); font-weight: 600; }
.lp-nav-link.active i { opacity: 0.8; }

.lp-nav-cta {
    background: var(--navy-800) !important;
    color: var(--white) !important;
    font-weight: 600;
    gap: 6px;
    margin-left: 4px;
}

.lp-nav-cta i { opacity: 0.8 !important; }

.lp-nav-cta:hover { background: var(--navy-700) !important; }

.lp-nav-mobile {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--navy-800);
    cursor: pointer;
}

/* ========================================
   Hero (compact)
   ======================================== */
.hv-hero {
    position: relative;
    height: 220px;
    margin-top: 68px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hv-hero-bg {
    position: absolute;
    inset: 0;
}

.hv-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,22,40,0.88) 0%, rgba(15,31,61,0.82) 50%, rgba(37,99,235,0.7) 100%);
}

.hv-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.hv-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.hv-hero p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    margin: 0 auto;
}

/* ========================================
   Layout (sidebar + content)
   ======================================== */
.hv-layout {
    display: flex;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    gap: 28px;
    min-height: calc(100vh - 288px - 68px);
}

/* ========================================
   Sidebar
   ======================================== */
.hv-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    height: fit-content;
    padding: 24px 0;
}

.hv-sidebar-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    padding: 0 16px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hv-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hv-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.hv-sidebar-item:hover { background: var(--white); box-shadow: var(--shadow-sm); }

.hv-sidebar-item.active {
    background: var(--white);
    box-shadow: var(--shadow);
}

.hv-sidebar-item.active .hv-sidebar-title { color: var(--gray-900); font-weight: 700; }

.hv-sidebar-item.active .hv-sidebar-icon {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat-color) 25%, transparent);
}

.hv-sidebar-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--cat-color) 10%, transparent);
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.hv-sidebar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hv-sidebar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-sidebar-count {
    font-size: 11px;
    color: var(--gray-400);
}

.hv-sidebar-help {
    margin-top: 24px;
    padding: 14px 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--gray-500);
}

.hv-sidebar-help i {
    font-size: 18px;
    color: var(--blue-500);
    flex-shrink: 0;
}

.hv-sidebar-help strong {
    display: block;
    font-size: 12px;
    color: var(--gray-700);
    margin-bottom: 1px;
}

.hv-sidebar-help a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
}

.hv-sidebar-help a:hover { text-decoration: underline; }

/* ========================================
   Content Area
   ======================================== */
.hv-content {
    flex: 1;
    min-width: 0;
    padding: 24px 0 48px;
}

.hv-section {
    margin-bottom: 40px;
    scroll-margin-top: 110px;
}

.hv-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

.hv-section-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--cat-color) 10%, transparent);
    color: var(--cat-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hv-section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.hv-section-header p {
    font-size: 13px;
    color: var(--gray-400);
}

/* ========================================
   Video Cards (compact list)
   ======================================== */
.hv-video-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hv-video-card {
    display: flex;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 14px;
    transition: all 0.2s;
    cursor: default;
}

.hv-video-card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.hv-video-thumb {
    width: 180px;
    height: 110px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.hv-thumb-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.2s;
}

.hv-video-thumb:hover .hv-thumb-play {
    background: var(--blue-600);
    transform: scale(1.1);
}

.hv-thumb-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    padding: 2px 7px;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 3px;
}

.hv-video-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hv-video-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    line-height: 1.4;
}

.hv-video-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hv-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--cat-color);
    background: color-mix(in srgb, var(--cat-color) 8%, transparent);
    padding: 3px 9px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hv-tag-time {
    font-size: 11px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 4px;
}

.hv-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--blue-600);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content;
}

.hv-play-btn:hover { background: #1d4ed8; transform: translateY(-1px); }

.hv-play-btn i { font-size: 10px; }

/* ========================================
   Video Player Modal
   ======================================== */
.hv-player-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.hv-player-modal.active { display: flex; }

.hv-player-inner {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: hvSlideUp 0.3s ease-out;
}

@keyframes hvSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hv-player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
}

.hv-player-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.hv-player-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.hv-player-close:hover { background: var(--gray-200); color: var(--gray-700); }

.hv-player-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--gray-900);
}

.hv-player-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   Footer
   ======================================== */
.hv-footer {
    background: var(--gray-900);
    padding: 20px 32px;
}

.hv-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.hv-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
}

.hv-footer-logo {
    height: 22px;
    width: auto;
    filter: invert(1) brightness(2);
    opacity: 0.4;
}

.hv-footer-link {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.hv-footer-link a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 600;
}

.hv-footer-link a:hover { color: white; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 960px) {
    .hv-layout { flex-direction: column; gap: 0; }
    .hv-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 16px 0 0;
    }
    .hv-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 12px;
    }
    .hv-sidebar-item { white-space: nowrap; padding: 8px 12px; }
    .hv-sidebar-text { flex-direction: row; gap: 6px; align-items: center; }
    .hv-sidebar-count { display: none; }
    .hv-sidebar-help { display: none; }
    .hv-sidebar-header { display: none; }
}

@media (max-width: 900px) {
    .lp-nav-links { display: none; }
    .lp-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--white);
        padding: 12px 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        gap: 2px;
        z-index: 100;
    }
    .lp-nav-links.open .lp-nav-link {
        padding: 12px 16px;
        border-radius: 10px;
        font-size: 14px;
        color: var(--gray-600);
    }
    .lp-nav-links.open .lp-nav-link i { opacity: 0.7; }
    .lp-nav-links.open .lp-nav-link:hover { background: var(--gray-100); }
    .lp-nav-mobile { display: block; }
}

@media (max-width: 768px) {
    .lp-nav-inner { padding: 0 16px; }
    .lp-brand-logo { height: 36px; }

    .hv-hero { height: 180px; margin-top: 68px; }
    .hv-hero h1 { font-size: 24px; }
    .hv-hero p { font-size: 12px; }

    .hv-layout { padding: 0 16px; }

    .hv-video-card { flex-direction: column; }
    .hv-video-thumb { width: 100%; height: 160px; }

    .hv-footer { padding: 16px; }
    .hv-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hv-hero-badge { display: none; }
    .hv-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
