/*
=========================================
PROJECT PAGE STYLES
=========================================
Styles specific to individual project pages (e.g., bachelor.html)
*/

/*
BACKGROUND
Dark with subtle NLE/timeline texture (placeholder for now)
*/
.project-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    z-index: -1;
}


/*
TV SCREEN CONTAINER - PROJECT PAGES
Keep same height as other pages so name/tagline stays in same position
*/
/* No height override - inherits 65vh from style.css */


/*
PROJECT CONTENT
The inner content area below the TV header
*/
.project-content {
    max-width: 1200px;      /* Wider to give logo/text/poster more breathing room */
    margin: 0 auto;
    margin-top: -200px;     /* Pull content up ~5% more */
    padding: 0 40px 60px;
    margin-bottom: 60vh;    /* Extra scroll room */
}


/*
PROJECT INFO SECTION
Network logo (left) | Show title (center) | Show poster (right)
Using position relative/absolute so center text is truly page-centered
*/
.project-info {
    position: relative;                         /* Container for absolute positioned logos */
    display: flex;
    justify-content: center;                    /* Center the middle content on page */
    align-items: flex-end;                      /* Align center text to bottom */
    margin-bottom: 20px;                        /* Reduced gap before description */
    padding: 60px 0 20px 0;                     /* Less bottom padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;                          /* Ensure enough height for logos */
}

/* Network Logo - positioned at far left, bottom-aligned with credits text */
.network-logo {
    position: absolute;
    left: -120px;                               /* Push further toward left edge of page */
    bottom: 20px;                               /* Closer to description box */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;                  /* Align to bottom */
    align-items: flex-start;
}

.network-logo img {
    max-width: 180px;                           /* Bigger ABC logo */
    height: auto;
}

/* Network name - used as fallback when no logo image available */
.network-name {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;                          /* Bigger text for visibility */
    color: white;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Show Details (center) */
.show-details {
    text-align: center;
}

.show-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* Credits - matches site style */
.show-credits {
    font-family: 'Press Start 2P', cursive;     /* Changed to match site style */
    font-size: 0.6rem;                          /* Smaller pixel font */
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    white-space: nowrap;                        /* Keep on one line */
}

/* Show Poster - positioned at far right, bottom-aligned with credits text */
.show-poster {
    position: absolute;
    right: -120px;                              /* Push further toward right edge of page */
    bottom: 20px;                               /* Closer to description box */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;                      /* Align to bottom */
}

.show-poster img {
    max-width: 300px;                           /* Smaller Bachelor logo */
    height: auto;
    border-radius: 4px;
}


/*
PROJECT DESCRIPTION
Summary of work done on the show
*/
.project-description {
    text-align: center;
    padding: 30px 40px;
    margin-bottom: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.project-description p {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}


/*
VIDEO SECTION
*/
.video-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    color: #4ECDC4;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.5);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;                 /* Single column - one video per row */
    gap: 30px;
    max-width: 800px;                           /* Constrain width for single column */
    margin: 0 auto;                             /* Center the video grid */
}

.video-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive video wrapper (16:9 aspect ratio) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

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

.video-caption {
    padding: 15px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}


/*
VIDEO WITH SIDE POSTER
Used on Herzog page — movie poster floats to the right of the video,
in the empty space outside the video grid (like the show-poster at page top)
*/
.video-with-poster {
    position: relative;         /* Container for absolute-positioned poster */
    overflow: visible;          /* Override .video-item's overflow:hidden so side poster isn't clipped */
}

.video-side-poster {
    position: absolute;
    right: -280px;              /* Float into the empty space to the right */
    top: 50%;
    transform: translateY(-50%); /* Vertically center with the video */
}

.video-side-poster img {
    max-width: 253px;
    height: auto;
    border-radius: 4px;
}

/* Hide side posters on smaller screens where there's no room */
@media (max-width: 1100px) {
    .video-side-poster {
        display: none;
    }
}


/*
BACK LINK
*/
.back-link {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: white;
    color: #1a1a2e;
}


/*
RESPONSIVE DESIGN
*/
@media (max-width: 768px) {
    .project-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .show-title {
        font-size: 1rem;
    }

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

    .project-content {
        padding: 20px;
    }

    .nav-link {
        font-size: 0.5rem;
    }

    .project-nav {
        gap: 20px;
    }
}
