/* Import global variables and resets (or copy them if preferred) */
@import url('../styles.css'); /* This might not work directly depending on server setup;
                                 it's better to copy common parts or use a build tool.
                                 For this example, I'll copy essential parts. */

/* --- START OF COPIED STYLES (Essentials from your main styles.css) --- */
:root {
    --primary-color: #E50914;
    --dark-bg: #000000;
    --card-bg: #141414;
    --text-light: #FFFFFF;
    --text-medium: #F5F5F1;
    --text-dark: #808080;
    --font-family: 'Poppins', sans-serif;
    --container-padding: 0 20px; /* Default from feedback/styles.css */
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    padding-top: var(--header-height); /* Account for fixed header */
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--container-padding);
}
.btn {
    display: inline-flex; /* Changed from inline-block for better icon alignment */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    align-items: center; /* For icon alignment */
    gap: 8px; /* Space between text and icon */
}
.btn-primary { background-color: var(--primary-color); color: var(--text-light); }
.btn-primary:hover { background-color: #f8121f; }
.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover { background-color: var(--primary-color); }
.btn-large { padding: 12px 25px; font-size: 1.1rem; width: 100%; justify-content: center;}

/* Header & Footer (assuming they are styled globally or copy styles here) */
/* Minimal Header/Footer copy for context - your full styles are in root styles.css */
.site-header {
    background-color: rgba(0, 0, 0, 0.8); padding: 15px 0; position: fixed;
    top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.main-nav ul { display: flex; gap: 25px; }
.main-nav a { color: var(--text-medium); font-weight: 500; font-size: 0.9rem; padding: 5px 0; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--text-light); }
.main-nav a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.icon-button img { height: 20px; width: 20px; filter: invert(90%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(100%) contrast(100%); }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle img { height: 28px; width: 28px; filter: invert(90%); }

.site-footer-main {
    background-image: url('../assets/FooterBG.png'); background-size: cover; background-position: center top;
    padding: 60px 0 30px; position: relative; color: var(--text-medium);
}
.site-footer-main::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.1); z-index: 0; }
.footer-container { position: relative; z-index: 1; display: flex; justify-content: flex-start; }
.footer-content-block { max-width: 350px; }
.footer-section { margin-bottom: 30px; }
.footer-identity-area .logo-and-title { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-identity-area .footer-logo img { height: 45px; width: 45px; }
.footer-identity-area .footer-logo-text { font-size: 1.7rem; font-weight: 600; color: var(--text-light); }
.footer-identity-area .tagline { font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.footer-identity-area .tagline span { display: block; }
.footer-identity-area .tagline .tagline-unreal { color: var(--primary-color); }
.footer-content-block h4 { font-size: 0.85rem; font-weight: 700; color: var(--text-light); margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-content-block .about-text, .footer-content-block ul a { color: #BDBDBD; font-size: 0.8rem; }
.footer-content-block ul li { margin-bottom: 10px; }
.copyright-container { position: relative; z-index: 1; text-align: center; padding-top: 30px; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.copyright-container p { font-size: 0.75rem; color: #A0A0A0; }
/* --- END OF COPIED STYLES --- */


/* Ticketing Page Specific Styles */
.ticketing-page {
    /* Body already has top padding for fixed header */
}

.movie-detail-hero {
    height: 50vh; /* Adjust height as needed */
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end; /* Align content to bottom */
    padding-bottom: 40px;
}

.movie-detail-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    z-index: 0;
}

.movie-detail-hero .hero-content {
    position: relative;
    z-index: 1;
}

.movie-detail-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.movie-booking-area {
    padding: 50px 0;
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Adjust ratio as needed */
    gap: 40px;
}

.movie-info-column .movie-poster-detail {
    width: 100%;
    max-width: 300px; /* Control poster size */
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.movie-info-column h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-light);
}
.movie-info-column h3 {
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
    border-bottom: 1px solid var(--card-bg);
    padding-bottom: 5px;
}
.movie-info-column p {
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.7;
}
.movie-meta li {
    color: var(--text-medium);
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.movie-meta strong {
    color: var(--text-light);
}

.booking-form-column h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-medium);
}
.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}
.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

.showtime-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.showtime-slots button {
    padding: 8px 15px;
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid #444;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}
.showtime-slots button:hover {
    background-color: #333;
    border-color: #555;
}
.showtime-slots button.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
}
.showtime-slots p { /* For "Please select a date" message */
    color: var(--text-dark);
}

.quantity-group .quantity-selector {
    display: flex;
    align-items: center;
    max-width: 150px; /* Control width */
}
.quantity-selector button {
    width: 40px;
    height: 40px;
    background-color: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
}
.quantity-selector button:first-child { border-radius: 5px 0 0 5px; }
.quantity-selector button:last-child { border-radius: 0 5px 5px 0; }
.quantity-selector input[type="number"] {
    text-align: center;
    border-left: none;
    border-right: none;
    border-radius: 0;
    width: calc(100% - 80px); /* Adjust based on button widths */
    -moz-appearance: textfield; /* Firefox */
}
.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.promo-code-section .promo-input-group {
    display: flex;
    gap: 10px;
}
.promo-code-section input[type="text"] {
    flex-grow: 1;
}
.promo-message {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
}
.promo-message.success { color: #4CAF50; /* Green */ }
.promo-message.error { color: var(--primary-color); /* Red */ }

.order-summary {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.order-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.order-summary p {
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}
.order-summary hr {
    border: none;
    border-top: 1px solid #333;
    margin: 10px 0;
}
.order-summary .total-price strong {
    font-size: 1.2rem;
    color: var(--primary-color);
}
.discount-line { color: #4CAF50; /* Green for discount text */ }

#bookNowBtn { margin-top: 15px; }

/* ... (your existing ticketing styles) ... */

/* 404 / Movie Not Found Page Styles */
#movieNotFound {
    /* display: none; Will be controlled by JS, but set flex for when it is visible */
    position: fixed; /* Cover the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #080310; /* Dark space background, sampled from your UFO image's sky */
    color: var(--text-light);
    display: flex; /* Enables easy centering */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2000; /* Ensure it's on top of everything */
    padding: 20px;
    /* padding-top: var(--header-height); Potentially remove if header is hidden */
    overflow: hidden; /* Prevent scrollbars on the 404 page itself */
}

#movieNotFound .not-found-image {
    max-width: 90%;
    width: 450px; /* Adjust based on your image's desired display size */
    height: auto;
    margin-bottom: 10px; /* Space between image and "ERROR 404..." text */
}

#movieNotFound .not-found-text { /* For "ERROR 404 - PAGE NOT FOUND" */
    font-size: 1.1rem; /* Adjust to match the text in your UFO image */
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#movieNotFound .not-found-message { /* For the additional flavor text */
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 30px;
    max-width: 450px;
    line-height: 1.5;
}

#movieNotFound .btn-home-404 {
    padding: 12px 25px;
    font-size: 1rem;
}

/* Responsive adjustments for Ticketing Page */
@media (max-width: 992px) {
    .movie-detail-hero h1 {
        font-size: 2.2rem;
    }
    .booking-layout {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .movie-info-column .movie-poster-detail {
        margin-left: auto;
        margin-right: auto; /* Center poster when stacked */
    }
}

@media (max-width: 768px) {
    .main-nav, .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }
    .site-header .container { justify-content: space-between; }
    .movie-detail-hero { height: 40vh; min-height: 300px; }
    .movie-detail-hero h1 { font-size: 1.8rem; }

    .movie-info-column h2, .booking-form-column h2 { font-size: 1.5rem; }
    .movie-info-column h3, .order-summary h3 { font-size: 1.1rem; }
    .btn-large { font-size: 1rem; }
}

@media (max-width: 480px) {
    .movie-detail-hero h1 { font-size: 1.6rem; }
    .showtime-slots button { padding: 6px 10px; font-size: 0.9rem; }
    .quantity-selector input[type="number"] { padding: 8px; }
    .order-summary p, .order-summary .total-price strong { font-size: 0.9rem; }
}