/* Cinema ticketing — shared theme (Bootstrap 5.3 overrides + layout helpers) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
    /* Brand palette */
    --tt-ink: #0f1923;
    --tt-ink-muted: #5a6472;
    --tt-surface: #ffffff;
    --tt-bg: #f0f2f5;
    --tt-bg-warm: #f5f2ec;
    --tt-bg-card: #ffffff;

    /* Cinematic dark header */
    --tt-header: #0a1520;
    --tt-header-mid: #0f2135;
    --tt-header-end: #162840;

    /* Gold accent */
    --tt-accent: #d4a82a;
    --tt-accent-dim: #b8911f;
    --tt-accent-soft: rgba(212, 168, 42, 0.13);
    --tt-accent-glow: rgba(212, 168, 42, 0.22);

    /* Status */
    --tt-success-soft: rgba(22, 163, 74, 0.10);
    --tt-danger-soft: rgba(220, 38, 38, 0.10);

    /* Geometry */
    --tt-radius: 0.6rem;
    --tt-radius-lg: 1rem;
    --tt-radius-xl: 1.35rem;

    /* Shadows */
    --tt-shadow-xs: 0 1px 3px rgba(10, 21, 32, 0.07);
    --tt-shadow: 0 2px 12px rgba(10, 21, 32, 0.09), 0 1px 3px rgba(10, 21, 32, 0.06);
    --tt-shadow-md: 0 4px 20px rgba(10, 21, 32, 0.11), 0 1px 4px rgba(10, 21, 32, 0.07);
    --tt-shadow-hover: 0 8px 28px rgba(10, 21, 32, 0.14), 0 2px 6px rgba(10, 21, 32, 0.08);
    --tt-shadow-inset: inset 0 1px 0 rgba(255,255,255,0.06);

    /* Bootstrap overrides */
    --bs-body-font-family: "DM Sans", system-ui, -apple-system, sans-serif;
    --bs-body-bg: var(--tt-bg);
    --bs-body-color: var(--tt-ink);
    --bs-primary: #1a4d70;
    --bs-primary-rgb: 26, 77, 112;
    --bs-link-color: #1a4d70;
    --bs-link-hover-color: #113a57;
    --bs-border-radius: var(--tt-radius);
    --bs-card-border-radius: var(--tt-radius-lg);
    --bs-focus-ring-color: rgba(26, 77, 112, 0.30);
}

/* ============================================================
   BASE
   ============================================================ */
body.tt-theme {
    font-family: var(--bs-body-font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   PUBLIC SITE SHELL
   ============================================================ */
.tt-public-site {
    background: var(--tt-bg);
}

/* ---- Navbar ---- */
.tt-public-header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 21, 32, 0.07), 0 2px 16px rgba(10, 21, 32, 0.04);
    transition: box-shadow 0.25s ease;
}

.tt-public-navbar {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.tt-public-brand {
    color: var(--bs-primary) !important;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.tt-public-brand .tt-brand-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0f2f4a 100%);
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tt-accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.tt-public-nav-link {
    font-weight: 500;
    font-size: 0.925rem;
    color: var(--tt-ink) !important;
    padding: 0.45rem 0.8rem !important;
    border-radius: 0.4rem;
    transition: color 0.15s, background 0.15s;
}

.tt-public-nav-link:hover {
    color: var(--bs-primary) !important;
    background: rgba(26, 77, 112, 0.07);
}

.tt-public-nav-link.active {
    color: var(--bs-primary) !important;
    font-weight: 600;
    background: rgba(26, 77, 112, 0.08);
}

.tt-public-navbar .navbar-toggler {
    border-color: rgba(10, 21, 32, 0.12);
    padding: 0.3rem 0.5rem;
}

.tt-public-navbar .navbar-toggler:focus {
    box-shadow: none;
}

/* ---- Hero ---- */
.tt-public-hero {
    position: relative;
    overflow: hidden;
    /* Dark base so text is always readable even before posters load */
    background: #071220;
}

.tt-public-hero-bg {
    /* Sits above the poster strip (z-index:0) but the ::before overlay is on top */
    background: transparent;
    z-index: 1;
}

/* Colour overlay on top of the poster strip — keeps text legible */
.tt-public-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(7,18,32,.82)  0%,
            rgba(7,18,32,.72) 50%,
            rgba(7,18,32,.88) 100%),
        radial-gradient(circle at 15% 50%, rgba(212,168,42,.06) 0%, transparent 55%),
        radial-gradient(circle at 85% 20%, rgba(26,77,112,.20)  0%, transparent 50%);
    z-index: 1;
}

.tt-public-hero .container {
    z-index: 2;
}

.tt-public-hero-inner {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
    .tt-public-hero-inner {
        padding-top: 5.5rem;
        padding-bottom: 6rem;
    }
}

.tt-hero-kicker {
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--tt-accent);
    opacity: 0.95;
}

.tt-hero-display {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.tt-hero-lead {
    font-size: 1.05rem;
    opacity: 0.82;
    line-height: 1.65;
}

.tt-scroll-target {
    scroll-margin-top: 5rem;
}

/* ---- Feature strip ---- */
.tt-feature-strip {
    background: var(--tt-surface);
    border-top: 1px solid rgba(10, 21, 32, 0.06);
    border-bottom: 1px solid rgba(10, 21, 32, 0.06);
}

.tt-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.tt-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    background: var(--tt-accent-soft);
    color: var(--tt-accent-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ---- Section headings ---- */
.tt-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 0.4rem;
}

/* ---- Cards ---- */
.tt-card {
    border: none;
    border-radius: var(--tt-radius-lg);
    box-shadow: var(--tt-shadow);
    background: var(--tt-surface);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

a.text-decoration-none:hover .tt-card,
a:hover .tt-card-hover {
    box-shadow: var(--tt-shadow-hover);
    transform: translateY(-3px);
}

.tt-card-city {
    border-radius: var(--tt-radius-xl) !important;
    overflow: hidden;
}

.tt-card-city .tt-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, var(--tt-accent-soft) 0%, rgba(212,168,42,0.05) 100%);
    border: 1px solid rgba(212, 168, 42, 0.18);
    color: var(--tt-accent-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.85rem;
}

.tt-card-show-meta {
    color: var(--tt-ink-muted);
    font-size: 0.875rem;
}

.tt-price-tag {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--tt-ink);
    letter-spacing: -0.01em;
}

/* Show list */
.tt-show-list .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(10, 21, 32, 0.06);
    padding: 1.1rem 1.35rem;
    transition: background 0.15s ease;
}

.tt-show-list .list-group-item:last-child {
    border-bottom: none;
}

.tt-show-list .list-group-item-action:hover {
    background: var(--tt-bg-warm);
}

.tt-show-list .list-group-item-action:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -2px;
}

/* Breadcrumbs */
.tt-breadcrumb {
    font-size: 0.875rem;
}

.tt-breadcrumb .breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.tt-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Show detail hero card */
.tt-show-hero-card {
    overflow: hidden;
    border: none;
    border-radius: var(--tt-radius-xl);
    box-shadow: var(--tt-shadow-md);
}

.tt-show-hero-card .card-body {
    padding: 1.5rem 1.5rem 1.4rem;
}

@media (min-width: 768px) {
    .tt-show-hero-card .card-body {
        padding: 1.85rem 2.1rem;
    }
}

/* Status badges */
.tt-badge-open {
    background: var(--tt-success-soft) !important;
    color: #14532d !important;
    font-weight: 600;
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
}

/* Date / time badges */
.tt-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #0f2135;
    color: #e8d48b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
}
.tt-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(212,168,42,.13);
    color: #92700f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.28rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
    border: 1px solid rgba(212,168,42,.25);
}
[data-bs-theme="dark"] .tt-date-badge {
    background: rgba(232,212,139,.12);
    color: #e8d48b;
    border: 1px solid rgba(232,212,139,.2);
}
[data-bs-theme="dark"] .tt-time-badge {
    background: rgba(212,168,42,.18);
    color: #e8d48b;
    border: 1px solid rgba(212,168,42,.3);
}

/* Forms */
.tt-form-card .card-header {
    background: var(--tt-surface);
    border-bottom: 1px solid rgba(10, 21, 32, 0.06);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1rem 1.35rem;
}

.tt-form-card .card-body {
    padding: 1.4rem 1.35rem 1.6rem;
}

@media (min-width: 768px) {
    .tt-form-card .card-body {
        padding: 1.6rem 1.85rem;
    }
}

/* Order summary */
.tt-order-section-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tt-ink-muted);
    margin-bottom: 0.4rem;
}

.tt-qr-ticket {
    border-radius: var(--tt-radius-lg);
    border: 1px solid rgba(10, 21, 32, 0.07);
    background: linear-gradient(180deg, #fff 0%, #f8f9fb 100%);
    padding: 1.35rem;
    text-align: center;
}

/* ---- Footer ---- */
.tt-footer-marketing {
    background: linear-gradient(180deg, #0a1520 0%, #060d14 100%);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.tt-footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.15s;
}

.tt-footer-link:hover {
    color: #fff;
}

.tt-footer-divider {
    border-color: rgba(255,255,255,0.08) !important;
}

/* ============================================================
   GUEST / AUTH LAYOUT
   ============================================================ */
.tt-guest-shell {
    min-height: 100vh;
}

.tt-guest-aside {
    background: linear-gradient(155deg, #071220 0%, #0f2135 45%, #1a3a56 80%, #0f2135 100%);
    color: #fff;
    min-height: 14rem;
    position: relative;
    overflow: hidden;
}

.tt-guest-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 70%, rgba(212, 168, 42, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(26, 77, 112, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

@media (min-width: 992px) {
    .tt-guest-aside {
        min-height: 100vh;
    }
}

.tt-guest-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tt-guest-brand:hover {
    color: var(--tt-accent) !important;
}

.tt-guest-brand .tt-brand-icon {
    width: 2.4rem;
    height: 2.4rem;
    background: rgba(212, 168, 42, 0.18);
    border: 1px solid rgba(212, 168, 42, 0.3);
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.tt-guest-card {
    border-radius: var(--tt-radius-xl) !important;
    box-shadow: var(--tt-shadow-md) !important;
}

/* ============================================================
   APP / STAFF NAVBAR (layouts/app.blade.php)
   ============================================================ */
.tt-navbar {
    background: linear-gradient(135deg, var(--tt-header) 0%, var(--tt-header-end) 100%) !important;
    box-shadow: var(--tt-shadow-md);
}

.tt-navbar .navbar-brand {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.tt-navbar .nav-link {
    color: rgba(255, 255, 255, 0.80) !important;
    font-weight: 500;
    border-radius: 0.35rem;
    padding: 0.4rem 0.7rem !important;
    margin: 0 0.1rem;
    transition: color 0.15s, background 0.15s;
}

.tt-navbar .nav-link:hover,
.tt-navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09);
}

.tt-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(212, 168, 42, 0.2);
}

.tt-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--tt-shadow-md);
    border-radius: var(--tt-radius);
}

.tt-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.tt-navbar .navbar-toggler-icon {
    filter: invert(1);
}

/* ============================================================
   PAGE SHELL HELPERS
   ============================================================ */
.tt-page-header {
    border-bottom: 1px solid rgba(10, 21, 32, 0.07);
    background: var(--tt-surface);
}

.tt-main-public {
    max-width: 70rem;
}

.tt-footer-public {
    margin-top: auto;
    background: var(--tt-surface);
    border-top: 1px solid rgba(10, 21, 32, 0.06);
    color: var(--tt-ink-muted);
    font-size: 0.875rem;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.tt-text-muted {
    color: var(--tt-ink-muted) !important;
}

.tt-text-accent {
    color: var(--tt-accent) !important;
}

.tt-bg-accent-soft {
    background: var(--tt-accent-soft) !important;
}

/* ============================================================
   SCANNER
   ============================================================ */
.tt-scanner-result {
    border-radius: var(--tt-radius-lg);
    border: none;
}

.tt-scanner-input {
    font-size: 0.95rem;
    min-height: 6rem;
}

/* ============================================================
   DASHBOARD ROLE CARDS
   ============================================================ */
.tt-dash-card {
    border: none;
    border-radius: var(--tt-radius-xl);
    box-shadow: var(--tt-shadow);
    height: 100%;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    background: var(--tt-surface);
    overflow: hidden;
}

.tt-dash-card::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, var(--tt-accent) 100%);
}

.tt-dash-card:hover {
    box-shadow: var(--tt-shadow-hover);
    transform: translateY(-3px);
}

.tt-dash-card .card-body {
    padding: 1.5rem;
}

/* ============================================================
   ADMIN TABLES
   ============================================================ */
.tt-table-card {
    border: none;
    border-radius: var(--tt-radius-lg);
    box-shadow: var(--tt-shadow);
    overflow: hidden;
    background: var(--tt-surface);
}

.tt-table-card .table thead th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--tt-ink-muted);
    border-bottom-width: 1px;
    background: #f8f9fb;
    padding: 0.85rem 1rem;
}

.tt-table-card .table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
}

.tt-table-card .table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================
   ADMIN SIDEBAR LAYOUT
   ============================================================ */
.tt-admin-body {
    background: #eef1f5;
}

.tt-admin-sidebar {
    width: 256px;
    min-width: 256px;
    background: linear-gradient(180deg, #0a1520 0%, #0f2135 60%, #162840 100%);
    box-shadow: 2px 0 12px rgba(0,0,0,0.18);
    position: relative;
    z-index: 100;
}

.tt-admin-sidebar-brand {
    padding: 1.1rem 1.25rem !important;
}

.tt-admin-sidebar-brand .tt-brand-icon {
    width: 2rem;
    height: 2rem;
    background: rgba(212, 168, 42, 0.18);
    border: 1px solid rgba(212, 168, 42, 0.28);
    border-radius: 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    color: var(--tt-accent);
}

.tt-admin-nav-section {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    padding: 0.9rem 0.85rem 0.35rem;
}

.tt-admin-nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    border-radius: 0.45rem;
    padding: 0.55rem 0.85rem !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.tt-admin-nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.09);
}

.tt-admin-nav-link.active {
    color: #fff !important;
    background: rgba(212, 168, 42, 0.18);
    font-weight: 600;
}

.tt-admin-nav-link.active .tt-admin-nav-icon {
    opacity: 1;
    color: var(--tt-accent);
}

.tt-admin-nav-icon {
    opacity: 0.65;
    flex-shrink: 0;
    width: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-admin-nav-icon svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tt-admin-offcanvas {
    width: min(280px, 88vw) !important;
    background: linear-gradient(180deg, #0a1520 0%, #0f2135 60%, #162840 100%) !important;
}

.tt-admin-topbar {
    z-index: 1020;
    min-height: 3.5rem;
}

/* ============================================================
   ABOUT / CONTENT PAGES
   ============================================================ */
.tt-content-hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    border-bottom: 1px solid rgba(10,21,32,0.07);
}

.tt-content-prose {
    max-width: 42rem;
}

/* ============================================================
   HOME — HERO POSTER STRIP
   ============================================================ */
.tt-hero-poster-strip {
    /* 8 equal columns, each fills the full hero height */
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: 1fr;        /* single row, fills 100% height */
    gap: 3px;
    pointer-events: none;
    opacity: 0;
    animation: ttPosterStripFade 1.4s 0.3s ease forwards;
    z-index: 0;
}

@keyframes ttPosterStripFade {
    to { opacity: 1; }
}

.tt-hero-poster-item {
    overflow: hidden;
    /* Slight scale-up hides the gap edges */
    transform: scale(1.03);
}

.tt-hero-poster-item img {
    /* Fill the cell completely — object-fit:cover crops without stretching */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    /* Darken + desaturate so hero text stays readable */
    filter: brightness(0.28) saturate(0.55);
}

/* ============================================================
   HOME — POSTER CARDS
   ============================================================ */
.tt-poster-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tt-poster-card:hover {
    transform: translateY(-4px);
}

.tt-poster-wrap {
    aspect-ratio: 27 / 32;
    background: #0f1923;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    transition: box-shadow 0.22s ease;
}
.tt-poster-card:hover .tt-poster-wrap {
    box-shadow: 0 12px 36px rgba(0,0,0,.32);
}

.tt-poster-img {
    display: block;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.tt-poster-card:hover .tt-poster-img {
    transform: scale(1.04);
    filter: brightness(0.75);
}

.tt-poster-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0f2135 0%, #162840 100%);
}

/* Overlay: hidden by default, slides up on hover */
.tt-poster-overlay {
    background: linear-gradient(to top,
        rgba(5,12,22,.95) 0%,
        rgba(5,12,22,.6)  45%,
        transparent       100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.tt-poster-card:hover .tt-poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* On mobile: always show a subtle gradient at the bottom */
@media (max-width: 767.98px) {
    .tt-poster-overlay {
        opacity: 1;
        transform: none;
        background: linear-gradient(to top,
            rgba(5,12,22,.88) 0%,
            rgba(5,12,22,.3)  40%,
            transparent       100%);
    }
    .tt-poster-overlay-content {
        display: none;
    }
    .tt-poster-card:hover .tt-poster-overlay-content {
        display: block;
    }
}

.tt-poster-footer {
    padding-top: .5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
    .tt-fade-up {
        animation: ttFadeUp 0.55s ease both;
    }

    .tt-fade-up-delay-1 { animation-delay: 0.1s; }
    .tt-fade-up-delay-2 { animation-delay: 0.2s; }
    .tt-fade-up-delay-3 { animation-delay: 0.3s; }

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