/* ============================================
   VIDEOS PAGE STYLES
   Matches Home page theme patterns
   ============================================ */

/* ============================================
   HERO SECTION - Dark theme (matches Training hero)
   ============================================ */

.videos-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-16)) var(--space-6) var(--space-16);
    overflow: hidden;
    background: #040a18;
}

.videos-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: block;
    grid-template-columns: unset;
    gap: unset;
}

.videos-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeUp 1s ease-out 0.3s both;
}

.videos-hero .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--cyan);
}

.videos-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -1.5px;
    animation: fadeUp 1s ease-out 0.5s both;
}

.videos-hero .hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--white-dim);
    margin-bottom: var(--space-10);
    line-height: 1.8;
    font-weight: 300;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease-out 0.7s both;
}

/* ============================================
   FEATURED VIDEOS - Light theme
   Matches Home courses/about sections
   ============================================ */

.featured-videos {
    padding: 80px 24px 100px;
    background: var(--section-bg);
    position: relative;
}

.featured-videos::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(59,130,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Section header overrides for light theme */
.videos-section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--navy-mid);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.videos-section-subtitle {
    font-size: 1.25rem;
    color: var(--navy);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.featured-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #D1D9E6;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-color: var(--blue-primary);
}

.featured-card.main-featured {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .featured-card.main-featured {
        grid-column: span 1;
    }
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: #E2E6EF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail iframe {
    border: none;
}

.video-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.video-badge.popular {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.video-badge.new {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.video-info {
    padding: var(--space-6);
}

.video-category {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(59,130,246,0.1);
    color: var(--blue-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.video-info h3 {
    font-size: 1.25rem;
    color: var(--navy-mid);
    margin-bottom: var(--space-3);
    line-height: 1.4;
    font-weight: 700;
}

.video-description {
    color: var(--navy);
    opacity: 0.7;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.video-meta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--navy);
    opacity: 0.6;
    font-size: 0.875rem;
}

.meta-item svg {
    color: var(--blue-primary);
    flex-shrink: 0;
}

/* ============================================
   BENEFITS SECTION - Light theme
   Matches Home about section feature cards
   ============================================ */

.benefits-section {
    padding: 80px 24px 100px;
    background: var(--section-bg);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.1), transparent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: #FFFFFF;
    border: 1px solid #D1D9E6;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--blue-accent), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.benefit-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 60px rgba(59,130,246,0.02);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    background: rgba(59,130,246,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
}

.benefit-card h3 {
    font-size: 1.25rem;
    color: #1E293B;
    margin-bottom: 12px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--navy);
    opacity: 0.7;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ============================================
   CUSTOM CONTENT CTA - Dark theme
   Matches Home schedule/contact sections
   ============================================ */

.custom-content-cta {
    padding: 80px 24px 100px;
    background: #0a1120;
    position: relative;
}

.custom-content-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.15), transparent);
}

.cta-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 28px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-10);
    align-items: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue-accent), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.cta-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
}

.cta-card:hover::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .cta-card {
        grid-template-columns: 1fr;
    }
}

.cta-content {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
}

.cta-icon {
    flex-shrink: 0;
}

.cta-text h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: 800;
}

.cta-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
}

.cta-feature svg {
    color: var(--blue-accent);
    flex-shrink: 0;
}

.cta-action {
    text-align: center;
}

.cta-action .btn-primary {
    padding: var(--space-5) var(--space-8);
    font-size: 1.125rem;
}

.cta-contact {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: var(--space-4);
}

.cta-contact a {
    color: var(--blue-accent);
    text-decoration: none;
    font-weight: 600;
}

.cta-contact a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .videos-hero {
        padding-top: calc(70px + var(--space-8));
        min-height: 50vh;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        flex-direction: column;
    }

    .cta-icon {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .video-info h3 {
        font-size: 1.125rem;
    }

    .video-description {
        font-size: 0.875rem;
    }

    .video-meta {
        gap: var(--space-2);
    }

    .meta-item {
        font-size: 0.75rem;
    }
}
