/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #888888;
    --gray-dark: #333333;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* White background for non-index pages */
body.white-page {
    background-color: var(--white);
    color: var(--black);
}

/* Fog Overlay - Removed */

/* Navigation - Black Menu Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background-color: var(--black);
    border-bottom: 1px solid var(--gray-dark);
    position: relative;
    z-index: 100;
}

/* White pages nav with white background */
body.white-page nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray);
}

body.white-page .nav-link {
    color: var(--black);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

/* Red color for Show Times link */
.show-times-link {
    color: #cc0000;
}

body.white-page .show-times-link {
    color: #cc0000;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Main Content */
main {
    min-height: calc(100vh - 100px);
}

/* Hero Section - Full screen with GIF */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-color: var(--black);
}

/* Black wings for desktop - elegant sidebars */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18%;
    background-color: var(--black);
    z-index: 10;
}

.hero::before {
    left: 0;
}

.hero::after {
    right: 0;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64%;
    max-width: 850px;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

/* Video as central image - loops continuously */
.hero-video {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 60px rgba(255,255,255,0.08);
}

/* Fallback for GIF */
.hero-gif {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 60px rgba(255,255,255,0.08);
}

.poster-frame {
    display: none;
}

.poster-placeholder {
    display: none;
}

.poster-placeholder h1 {
    font-size: 4.5rem;
    font-weight: 500;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
}

.poster-placeholder .tagline {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
    color: var(--gray);
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Showtimes Section */
.showtimes-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-dark);
    padding-bottom: 1rem;
    color: #cc0000;
}

.showtimes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showtime-card {
    display: flex;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--gray-dark);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out both;
}

.showtime-card:nth-child(1) { animation-delay: 1.6s; }
.showtime-card:nth-child(2) { animation-delay: 1.7s; }
.showtime-card:nth-child(3) { animation-delay: 1.8s; }
.showtime-card:nth-child(4) { animation-delay: 1.9s; }

.showtime-card:hover {
    border-color: var(--white);
    background: var(--gray-dark);
}

.showtime-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding-right: 2rem;
    border-right: 1px solid var(--gray);
}

.showtime-date .day {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
}

.showtime-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
}

.showtime-details {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
    gap: 0.3rem;
}

.showtime-time {
    font-size: 1.3rem;
    font-weight: 500;
}

.showtime-location {
    color: var(--gray);
}

.showtime-notes {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* Purchase Tickets Button */
.btn-tickets {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: #cc0000;
    color: var(--white) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-tickets:hover {
    background-color: #ff0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.no-showtimes {
    text-align: center;
    color: var(--gray);
    padding: 3rem;
    font-size: 1.1rem;
}

/* About Page */
.about-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* White page overrides */
body.white-page .about-page {
    color: var(--black);
}

/* About Section */
.about-section {
    margin-bottom: 4rem;
}

.about-content-wrapper {
    text-align: center;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: var(--black);
}

.about-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

/* Venue Section */
.venue-section {
    margin-top: 3rem;
    padding-top: 2rem;
}

.venue-link {
    color: #cc0000;
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.venue-link:hover {
    opacity: 0.7;
}

.venue-text {
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* Section Divider */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray), transparent);
    margin: 3rem 0;
}

/* Cast Section */
.cast-section {
    margin-top: 4rem;
}

.cast-title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
}

/* Crew Section */
.crew-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.crew-item {
    text-align: center;
}

.crew-label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.crew-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black);
}

/* Cast Grid */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cast-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--gray);
}

.cast-photo {
    margin-bottom: 1.5rem;
}

.cast-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--black);
}

.cast-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cast-initials {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
}

.cast-character {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 0.3rem;
}

.cast-actor {
    display: block;
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.cast-bio {
    font-size: 0.9rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

.no-cast {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    padding: 2rem;
}

/* Venues Section */
.venues-section {
    margin-top: 2rem;
}

.venues-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.venue-item {
    text-align: center;
}

.venue-link {
    color: #cc0000;
    text-decoration: underline;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.venue-link:hover {
    opacity: 0.7;
}

.venue-text-static {
    color: var(--black);
    font-size: 1.1rem;
}

/* Red X Delete Button */
.btn-delete {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    color: #cc0000;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    color: #ff0000;
    transform: scale(1.1);
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.login-box {
    border: 2px solid var(--white);
    padding: 3rem;
    max-width: 400px;
    width: 100%;
    animation: fadeIn 1s ease-out 1.5s both;
}

.login-box h1 {
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.flash-message {
    background: var(--gray-dark);
    color: var(--white);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray);
}

/* Admin Page */
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    animation: fadeIn 1s ease-out 1s both;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-showtimes h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.showtimes-table {
    width: 100%;
    border-collapse: collapse;
}

.showtimes-table th,
.showtimes-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-dark);
}

.showtimes-table th {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    font-size: 0.9rem;
}

.showtimes-table tr:hover {
    background: var(--gray-dark);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-small {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-small:hover {
    background: var(--white);
    color: var(--black);
}

.btn-secondary {
    border-color: var(--gray);
}

.btn-secondary:hover {
    background: var(--gray);
    color: var(--white);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.btn-danger:hover {
    border-color: #cc0000;
    background: #cc0000;
    color: var(--white);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--gray-dark);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--white);
}

.form-group textarea {
    resize: vertical;
}

.showtime-form {
    max-width: 600px;
    border: 1px solid var(--gray-dark);
    padding: 2rem;
}

.about-form {
    max-width: 700px;
    border: 1px solid var(--gray-dark);
    padding: 2rem;
}

.about-form h3 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-dark);
}

.about-form h3:first-of-type {
    margin-top: 0;
}

.about-form small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    /* Mobile: Full screen GIF as background */
    .hero {
        min-height: 100vh;
        padding: 0;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .hero-gif {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        object-fit: cover;
        border: none;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .showtimes-section {
        padding: 2rem 1rem;
    }

    .showtime-card {
        flex-direction: row;
        padding: 1.5rem;
        gap: 1rem;
    }

    .showtime-date {
        min-width: 60px;
        padding-right: 1rem;
    }

    .showtime-date .day {
        font-size: 1.8rem;
    }

    .showtime-date .month {
        font-size: 0.75rem;
    }

    .showtime-time {
        font-size: 1.1rem;
    }

    .showtime-location {
        font-size: 0.9rem;
    }

    .about-page {
        padding: 3rem 1.5rem;
    }

    .poster-frame-small {
        max-width: 150px;
    }

    .poster-frame-small .poster-placeholder {
        min-height: 200px;
        padding: 1.5rem;
    }

    .poster-frame-small .poster-placeholder h1 {
        font-size: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text h3 {
        font-size: 1.1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .cast-member {
        flex-direction: column;
        gap: 0.25rem;
    }

    .admin-page {
        padding: 3rem 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-header h1 {
        font-size: 1.5rem;
    }

    .admin-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-actions a,
    .admin-actions button {
        width: 100%;
        text-align: center;
    }

    .showtimes-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .showtimes-table th,
    .showtimes-table td {
        padding: 0.75rem 0.5rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-small {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .showtime-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
        gap: 0.5rem 1rem;
    }

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

    .showtime-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .showtime-date {
        border-right: none;
        border-bottom: 1px solid var(--gray);
        padding-right: 0;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
        width: 100%;
    }

    .showtime-details {
        padding-left: 0;
        width: 100%;
    }
}
