/* youtube.css — Campaign video page styles */

/* =============================================
   HERO
   Reuses timeline-hero class from the HTML you
   already wrote — no change needed in the HTML.
   If you want a dedicated class rename it here.
============================================= */
.timeline-hero {
    min-height: 280px;
    background:
        linear-gradient(rgba(10, 12, 25, 0.85), rgba(10, 12, 25, 0.97)),
        url('https://images.unsplash.com/photo-1511671782779-c97d3d27a1d4?q=80&w=1470&auto=format&fit=crop')
        center/cover no-repeat scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--accent-gold);
    position: relative;
}

.timeline-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.timeline-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
}

.timeline-hero-content {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(251, 191, 36, 0.3);
}

.timeline-hero-content h1 .fab {
    color: var(--accent-gold); /* YouTube red for the icon */
}

.timeline-hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* =============================================
   VIDEO SECTION
   Centers the video and wraps it in a styled
   container that matches the site aesthetic.
============================================= */
.video-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 2rem 6rem;
}

.video-card {
    width: 100%;
    max-width: 860px;
    background: linear-gradient(160deg, #1e2d45 0%, #0f172a 100%);
    border-radius: var(--border-radius);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-top: 3px solid var(--accent-gold);
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(251, 191, 36, 0.04);
    position: relative;
}

/*
  Subtle gold halo glow behind the video
  — same technique as gods and characters cards.
*/
.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =============================================
   VIDEO WRAPPER
   The padding-top trick (56.25% = 16:9 ratio)
   makes the iframe perfectly responsive —
   it always fills the container at 16:9 regardless
   of screen size.
============================================= */
.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    width: 100%;
    z-index: 1;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* =============================================
   VIDEO FOOTER
   A small bar below the video with a label
   and a link to the full channel.
============================================= */
.video-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    position: relative;
    z-index: 1;
}

.video-footer-label {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-footer-label i {
    color: var(--accent-gold);
}

.video-channel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-decoration: none;
    border: 1.5px solid var(--accent-gold);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-channel-link:hover {
    background: var(--accent-gold);
    color: var(--accent-purple);
    border-color: var(--accent-gold);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .timeline-hero-content h1 { font-size: 2.2rem; }
    .video-section { padding: 2rem 1rem 4rem; }

    .video-footer {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }

    .video-channel-link {
        width: 100%;
        justify-content: center;
    }
}