﻿/* ====================================
   CINEMA-SPECIFIC LAYOUT STYLES ONLY
   Scoped to avoid conflicts with other views
   ==================================== */

/* SHOWINGS LAYOUT - Keep existing behavior */
.movie-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid currentColor;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.showtimes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.showtime-btn {
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sold-out {
    font-weight: bold;
    font-size: 12px;
    opacity: 0.5;
}

/* ====================================
   SEAT PICKER LAYOUT
   Scoped to .seat-picker-container
   ==================================== */

.seat-picker-container {
    padding-bottom: 0 !important;
}

    /* ORIENTATION PROMPT */
    .seat-picker-container .orientation-prompt {
        display: none;
        color: currentColor;
        padding: 20px;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 20px;
        border: 1px solid currentColor;
    }

    /* QUICK ACTIONS BAR */
    .seat-picker-container .seat-quick-actions {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .seat-picker-container .quick-action-btn {
        flex: 1;
        padding: 12px;
        border: none;
        background: #C0FFE0;
        color: #000;
        font-size: 1em;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'trtgroza-regular',sans-serif;
        text-transform: lowercase;
        -webkit-border-radius: 3.40282e38px;
        -moz-border-radius: 3.40282e38px;
        border-radius: 3.40282e38px;
    }

    /* SCREEN */
    .seat-picker-container .screen {
        text-align: center;
        margin: 30px 0 20px 0;
        font-weight: bold;
    }

        .seat-picker-container .screen::after {
            content: "SCREEN";
            display: block;
            border-top: 2px solid currentColor;
            padding-top: 10px;
            margin-top: 20px;
            letter-spacing: 4px;
        }

    /* SEATING AREA WRAPPER - Prevent overflow from covering fixed elements */
    .seat-picker-container .seat-rows {
        /* keep a sensible max height for very tall maps, but do not force a fixed height */
        max-height: calc(100vh - 320px) !important;
        height: auto !important;
        overflow: auto !important;
    }


        .seat-picker-container .seat-rows:active {
            cursor: grabbing; /* Show grabbing cursor when dragging */
        }

        .seat-picker-container .seat-rows::-webkit-scrollbar {
            height: 8px;
            width: 8px;
        }

        .seat-picker-container .seat-rows::-webkit-scrollbar-track {
            background: transparent;
        }

        .seat-picker-container .seat-rows::-webkit-scrollbar-thumb {
            background: currentColor;
            border-radius: 4px;
            opacity: 0.5;
        }


        .seat-picker-container .seat-rows::-webkit-scrollbar {
            height: 8px;
            width: 8px;
        }

        .seat-picker-container .seat-rows::-webkit-scrollbar-track {
            background: transparent;
        }

        .seat-picker-container .seat-rows::-webkit-scrollbar-thumb {
            background: currentColor;
            border-radius: 4px;
            opacity: 0.5;
        }

    /* ROW CONTAINER */
    .seat-picker-container .seat-row {
        display: flex;
        align-items: center;
        margin-bottom: 12px;
        gap: 10px;
    }

    .seat-picker-container .row-label {
        font-weight: bold;
        min-width: 30px;
        text-align: right;
        font-size: 16px;
        flex-shrink: 0;
    }

    /* SEATS IN ROW - NEVER WRAP */
    .seat-picker-container .seats-in-row {
        display: flex;
        gap: 8px;
        align-items: center;
        flex-wrap: nowrap;
        min-width: min-content;
    }

    /* SEAT BUTTONS */
    .seat-picker-container .seat-btn,
    .seat-picker-container .seat-aisle,
    .seat-picker-container .seat-spacer {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
    }

    .seat-picker-container .seat-btn {
        border: 1px solid currentColor;
        cursor: pointer;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

        .seat-picker-container .seat-btn:hover:not(:disabled) {
            transform: scale(1.1);
        }

        .seat-picker-container .seat-btn.selected {
            transform: scale(1.15);
        }

        .seat-picker-container .seat-btn:disabled {
            cursor: not-allowed;
            opacity: 0.5;
        }

    /* AISLE SEATS */
    .seat-picker-container .seat-aisle,
    .seat-picker-container .seat-spacer {
        background: transparent;
        border: none;
        cursor: default;
        pointer-events: none;
        position: relative;
    }

        .seat-picker-container .seat-aisle::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 2px;
            height: 60%;
            background: currentColor;
            opacity: 0.15;
        }

/* SEAT LEGEND - NOT STICKY */


.seat-picker-container {
    max-width: 900px;
    margin: 0 auto;
}



    .seat-picker-container .legend {
        display: flex;
        gap: 20px;
        justify-content: center;
        margin: 20px 0;
        flex-wrap: wrap;
        padding: 15px;
        border-radius: 4px;
        position: static;
    }

    .seat-picker-container .legend-item {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

    .seat-picker-container .legend-box {
        width: 25px;
        height: 25px;
        border: 1px solid currentColor;
        border-radius: 2px;
        flex-shrink: 0;
    }

    /* Ensure the summary participates in normal document flow (not positioned/sticky/fixed) */
    .seat-picker-container .selection-summary {
        position: static !important;
        margin-top: 16px !important;
        text-align: center; /* center the "Seats Required / Selected" summary */
        /* keep visual styling minimal—other styles are already defined elsewhere */
    }

        .seat-picker-container .selection-summary strong {
            font-size: 18px;
            display: block;
            margin-bottom: 8px;
        }

        .seat-picker-container .selection-summary p {
            margin: 8px 0;
            font-size: 16px;
        }

    .seat-picker-container .match-indicator {
        display: inline-block;
        margin-top: 10px;
        font-weight: bold;
        font-size: 14px;
        padding: 8px 16px;
        border-radius: 4px;
    }

        .seat-picker-container .match-indicator.valid {
            color: #E7FF9C;
            background: rgba(76, 175, 80, 0.1);
            border: 1px solid #E7FF9C;
        }

        .seat-picker-container .match-indicator.invalid {
            color: #FDCCDF;
            background: rgba(211, 47, 47, 0.1);
            border: 1px solid #FDCCDF;
        }

    /* CONTINUE BUTTON */
    .seat-picker-container .continue-btn {
        margin-top: 10px;
        position: relative;
        z-index: 201;
        pointer-events: auto;
    }

        .seat-picker-container .continue-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    /* ZOOM CONTROLS - HIDDEN */
    .seat-picker-container .seat-zoom-controls {
        display: none !important;
    }

    .seat-picker-container .zoom-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid currentColor;
        background: inherit;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        pointer-events: auto;
    }

        .seat-picker-container .zoom-btn:active {
            transform: scale(0.95);
        }

/* ====================================
   TICKET PICKER LAYOUT
   Scoped to .tickets-container
   ==================================== */

.tickets-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

    .tickets-container h1 {
        margin-bottom: 20px;
    }

    .tickets-container .ticket-table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }

        .tickets-container .ticket-table th,
        .tickets-container .ticket-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid currentColor;
        }

        .tickets-container .ticket-table th {
            font-weight: bold;
            background: rgba(0, 0, 0, 0.05);
        }

    .tickets-container .ticket-info-cell {
        min-width: 200px;
    }

    .tickets-container .ticket-name {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 4px;
    }

    .tickets-container .ticket-description {
        font-size: 13px;
        opacity: 0.7;
        line-height: 1.3;
    }

    .tickets-container .ticket-price-cell {
        white-space: nowrap;
        width: 100px;
    }

    .tickets-container .ticket-cost {
        font-weight: 600;
        font-size: 16px;
    }

    .tickets-container .ticket-quantity-cell {
        width: 140px;
        text-align: center;
    }

    .tickets-container .ticket-quantity-control {
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
    }

    .tickets-container .qty-btn {
        width: 32px;
        height: 32px;
        border: 1px solid currentColor;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
    }

        .tickets-container .qty-btn:hover:not(:disabled) {
            transform: scale(1.05);
        }

        .tickets-container .qty-btn:active:not(:disabled) {
            transform: scale(0.95);
        }

        .tickets-container .qty-btn:disabled {
            cursor: not-allowed;
            opacity: 0.5;
        }

    .tickets-container .qty-display {
        min-width: 40px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
    }

    .tickets-container .ticket-subtotal-cell {
        white-space: nowrap;
        text-align: right;
        width: 80px;
    }

    .tickets-container .ticket-subtotal {
        font-weight: 600;
    }

    .tickets-container .validation-summary {
        padding: 20px;
        border-radius: 4px;
        border: 1px solid currentColor;
        margin: 20px 0;
        text-align: center;
    }

/* ERROR MESSAGES */
.error-message {
    color: #FDCCDF;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid #FDCCDF;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* SUCCESS MESSAGES */
.success-message {
    color: #E7FF9C;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #E7FF9C;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* ====================================
   MOBILE RESPONSIVENESS
   ==================================== */

@media (max-width: 768px) {
    .seat-picker-container {
        padding: 15px;
        padding-bottom: 160px;
    }

        .seat-picker-container h1 {
            font-size: 1.5em;
        }



        .seat-picker-container .seat-rows {
            max-height: 400px;
            height: 400px;
            overflow: auto;
        }

        .seat-picker-container .selection-summary {
            padding: 12px;
        }

        .seat-picker-container .seat-btn,
        .seat-picker-container .seat-aisle,
        .seat-picker-container .seat-spacer {
            width: 42px;
            height: 42px;
            min-width: 42px;
        }

        .seat-picker-container .seat-btn {
            font-size: 11px;
        }

        .seat-picker-container .seats-in-row {
            gap: 6px;
        }

        .seat-picker-container .seat-row {
            gap: 8px;
        }

        .seat-picker-container .row-label {
            min-width: 28px;
            font-size: 14px;
        }

        .seat-picker-container .screen::after {
            letter-spacing: 2px;
            padding-top: 8px;
            margin-top: 15px;
        }

    /* TICKETS MOBILE */
    .tickets-container {
        padding: 15px;
    }

        .tickets-container .ticket-name {
            font-size: 15px;
        }

        .tickets-container .ticket-description {
            font-size: 12px;
        }

        .tickets-container .ticket-price-cell,
        .tickets-container .ticket-subtotal-cell {
            width: 70px;
            font-size: 14px;
        }

        .tickets-container .ticket-quantity-cell {
            width: 120px;
        }

        .tickets-container .qty-btn {
            width: 28px;
            height: 28px;
            font-size: 14px;
        }

        .tickets-container .qty-display {
            min-width: 35px;
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .seat-picker-container {
        padding: 10px;
        padding-bottom: 150px;
    }

        .seat-picker-container .seat-rows {
            margin: 0 -10px;
            padding: 10px;
            width: calc(100% + 20px);
            max-height: 350px;
            height: 350px;
            overflow: auto;
        }

        .seat-picker-container .seat-btn,
        .seat-picker-container .seat-aisle,
        .seat-picker-container .seat-spacer {
            width: 40px;
            height: 40px;
            min-width: 40px;
        }

        .seat-picker-container .seat-btn {
            font-size: 10px;
        }

        .seat-picker-container .seats-in-row {
            gap: 5px;
        }

        .seat-picker-container .seat-row {
            gap: 8px;
            margin-bottom: 10px;
        }

        .seat-picker-container .row-label {
            min-width: 25px;
            font-size: 12px;
        }

        .seat-picker-container .legend {
            margin-left: -10px;
            margin-right: -10px;
        }

    /* TICKETS SMALL MOBILE */
    .tickets-container {
        padding: 10px;
    }

        .tickets-container .ticket-table th,
        .tickets-container .ticket-table td {
            padding: 8px 6px;
            font-size: 13px;
        }

        .tickets-container .ticket-name {
            font-size: 14px;
        }

        .tickets-container .ticket-description {
            font-size: 11px;
        }

        .tickets-container .ticket-info-cell {
            min-width: 150px;
        }

        .tickets-container .ticket-price-cell,
        .tickets-container .ticket-subtotal-cell {
            width: 60px;
            font-size: 13px;
        }

        .tickets-container .ticket-quantity-cell {
            width: 100px;
        }

        .tickets-container .qty-btn {
            width: 26px;
            height: 26px;
            font-size: 13px;
        }

        .tickets-container .qty-display {
            min-width: 30px;
            font-size: 13px;
        }

    /* mods: stack ticket name and description vertically */
    .ticket-info-cell .ticket-name,
    .ticket-info-cell .ticket-description {
        display: block;
    }
}

/* ZOOM MODE */
.seat-picker-container.seat-zoom-mode .seat-rows {
    transform-origin: top left;
    transition: transform 0.3s ease;
    overflow: auto !important;
}

/* HAPTIC FEEDBACK */
@media (hover: none) {
    .seat-picker-container .seat-btn:active:not(:disabled) {
        transform: scale(0.9);
    }
}

/* LOADING STATE */
.seat-picker-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ACCESSIBILITY */
@media (max-width: 768px) {
    .seat-picker-container .seat-btn:focus-visible {
        outline: 3px solid currentColor;
        outline-offset: 2px;
    }
}

@media (max-width: 768px) {
    .seat-picker-container .seat-rows {
        scrollbar-width: auto;
    }

        .seat-picker-container .seat-rows::-webkit-scrollbar {
            height: 6px;
            width: 6px;
        }
}



/* SEAT BUTTONS - Add color styling */
.seat-picker-container .seat-btn {
    border: 1px solid currentColor;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: inherit;
    color: inherit;
}

    .seat-picker-container .seat-btn.available {
        background-color: #E7FF9C;
        border-color: #E7FF9C;
        color: #3D221E;
    }

        .seat-picker-container .seat-btn.available:hover:not(:disabled) {
            transform: scale(1.06);
        }

    .seat-picker-container .seat-btn.selected {
        background-color: #C0FFE0;
        border-color: #C0FFE0;
        color: #000;
        transform: scale(1.06);
    }

        .seat-picker-container .seat-btn.selected:hover:not(:disabled) {
            background-color: #C0FFE0;
        }

    .seat-picker-container .seat-btn:disabled {
        background-color: #EEE9DC;
        border-color: #EEE9DC;
        color: #fff;
        cursor: not-allowed;
        opacity: 1;
    }


/* Member cards */

.membership-container {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
}

.membership-card {
    border: 2px solid currentColor;
    border-radius: 8px;
    padding: 2rem;
    margin: 1rem 0;
    background: inherit;
}

.primary-card {
    border-color: #007bff;
    box-shadow: 0 4px 6px rgba(0,123,255,0.1);
}

.btn-large {
    padding: 12px 40px;
    font-size: 1.1rem;
    width: 100%;
}

.guest-option {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid currentColor;
}

.link-guest {
    opacity: 0.6;
    text-decoration: underline;
    font-size: 0.95rem;
}



/*movie cards*/

.movies-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.movie-card {
    display: flex;
    gap: 20px;
    border: 1px solid currentColor;
    border-radius: 8px;
    padding: 15px;
    background: #EEE9DB;
    color: #3D221E;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.movie-poster {
    flex-shrink: 0;
    width: 150px;
}

    .movie-poster img {
        width: 100%;
        height: auto;
        border-radius: 4px;
    }

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .movie-info h3 {
        margin: 0;
        font-size: 1.5em;
    }

.movie-details {
    opacity: 0.7;
    margin: 0;
}

.movie-synopsis {
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

.showing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

    .showing-badges .badge {
        display: inline-block;
        padding: 4px 12px;
        background: #E7FF9C;
        color: #3D221E;
        border-radius: 12px;
        font-size: 0.85em;
        font-weight: 500;
    }

.showtimes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid currentColor;
}

    .showtimes strong {
        display: block;
        margin-bottom: 10px;
    }

.showtime-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #C0FFE0;
    color: #000 !important;
    border: none;
    -webkit-border-radius: 3.40282e38px;
    -moz-border-radius: 3.40282e38px;
    border-radius: 3.40282e38px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: background 0.3s;
}

    .showtime-btn:hover {
        transform: scale(1.06);
    }

/* Responsive design */
@media (max-width: 768px) {
    .movie-card {
        flex-direction: column;
    }

    .movie-poster {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}

/* ====================================
   MODS: seat-type styling
   (hide labels, wheelchair symbol, couch grouping)
   ==================================== */

/* Don't show the seat name on each seat */
.seat-picker-container .seat-btn .seat-label {
    display: none;
}

/* Wheelchair seats: show the wheelchair glyph instead of a name */
.seat-picker-container .seat-btn.wheelchair::before {
    content: "\267F"; /* ♿ */
    font-size: 20px;
    line-height: 1;
}

.seat-picker-container .seat-btn.couch-left,
.seat-picker-container .seat-btn.couch-right {
    width: 44px; /* 40px seat + 4px (half of the 8px row gap) */
    min-width: 44px;
}

/* Couch grouping: couch-left + couch-right render as one continuous outline.
   Regular seats keep their own individual outline (unchanged). */
.seat-picker-container .seat-btn.couch-left {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.seat-picker-container .seat-btn.couch-right {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -8px; /* close the .seats-in-row flex gap so the pair reads as one couch */
}
