/* ── TableTemptation — global styles ──────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
}

/* ── Hero section ────────────────────────────────────────────────────── */
.tt-hero {
    background: linear-gradient(135deg, #111111 0%, #C62828 100%);
    color: #fff;
    padding: 0;
}

.tt-hero-title {
    color: #fff !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.tt-hero-subtitle {
    color: rgba(255,255,255,0.88) !important;
}

.tt-cta-btn {
    min-width: 160px;
}

/* ── Language selector ───────────────────────────────────────────────── */
.lang-selector-menu .mud-button-root.mud-menu-button-activator {
    text-transform: none !important;
    font-size: 0.85rem !important;
    min-width: auto !important;
    padding: 4px 8px !important;
}

/* ── Feature cards ───────────────────────────────────────────────────── */
.tt-feature-card {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease;
}
.tt-feature-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12) !important;
}

/* ── Alternating section background ─────────────────────────────────── */
.tt-section-alt {
    background: #F5F5F5;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */
.tt-cta-banner {
    background: #fff;
    border-top: 1px solid #E0E0E0;
}

/* ── Auth pages ──────────────────────────────────────────────────────── */
.tt-auth-page {
    min-height: calc(100vh - 64px);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.tt-auth-card {
    border-radius: 16px !important;
}

/* ── Admin stat cards ────────────────────────────────────────────────── */
.tt-stat-card {
    border-radius: 12px !important;
}
.tt-stat-card-link {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tt-stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

/* ── Image lightbox ─────────────────────────────────────────────────── */
.tt-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tt-lightbox-content {
    position: relative;
    max-width: 80vw;
    max-height: 80vh;
    cursor: default;
}
.tt-lightbox-image {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.tt-lightbox-close {
    position: absolute !important;
    top: -40px;
    right: -8px;
    color: white !important;
}
.tt-menu-item-image {
    cursor: pointer;
    transition: transform 0.15s ease;
}
.tt-menu-item-image:hover {
    transform: scale(1.05);
}

/* ── Admin quick-action panels ───────────────────────────────────────── */
.tt-quick-action {
    border-radius: 12px !important;
    transition: box-shadow 0.2s ease;
}
.tt-quick-action:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
}

/* ── Public menu banner ──────────────────────────────────────────────── */
.tt-public-banner {
    position: relative;
    padding: 3rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-public-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tt-public-banner-compact {
    min-height: auto;
    padding: 1.5rem 0;
}
@media (min-width: 600px) {
    .tt-public-banner-compact {
        padding: 2rem 0;
    }
}

.tt-public-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ── Flag images ─────────────────────────────────────────────────────── */
.tt-flag-chip {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Public restaurant — sub-page floating logo ─────────────────────── */
.tt-subpage-logo {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 1100;
    pointer-events: auto;
}
.tt-subpage-logo-img {
    height: 32px;
    max-width: 80px;
    object-fit: contain;
}

/* Tablet: medium logo */
@media (min-width: 600px) {
    .tt-subpage-logo-img {
        height: 48px;
        max-width: 120px;
    }
}

/* Desktop: larger logo */
@media (min-width: 960px) {
    .tt-subpage-logo-img {
        height: 80px;
        max-width: 200px;
    }
}

/* ── Public restaurant — landing page responsive ────────────────────── */

/* Hero logo: smaller on mobile */
.tt-hero-logo {
    max-height: 120px;
    max-width: 70vw;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}
@media (min-width: 600px) {
    .tt-hero-logo {
        max-height: 280px;
        max-width: 460px;
    }
}
@media (min-width: 960px) {
    .tt-hero-logo {
        max-height: 360px;
        max-width: 600px;
    }
}

/* Landing section padding: tighter on mobile */
.tt-landing-section {
    padding: 3rem 0;
}
@media (min-width: 600px) {
    .tt-landing-section {
        padding: 5rem 0;
    }
}

/* Landing section titles: smaller on mobile */
.tt-section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff;
}
@media (min-width: 600px) {
    .tt-section-title {
        font-size: 2rem !important;
    }
}

/* Hero restaurant name: responsive */
.tt-hero-name {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}
@media (min-width: 600px) {
    .tt-hero-name {
        font-size: 2.5rem !important;
    }
}
@media (min-width: 960px) {
    .tt-hero-name {
        font-size: 3rem !important;
    }
}

/* Hero subtitle (address) */
.tt-hero-address {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.5px;
}
@media (min-width: 600px) {
    .tt-hero-address {
        font-size: 1rem !important;
    }
}

/* Nav bar: scrollable on mobile */
.tt-nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding: 6px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
}
.tt-nav-bar::-webkit-scrollbar { display: none; }
@media (min-width: 600px) {
    .tt-nav-bar {
        justify-content: center;
        gap: 8px;
        padding: 8px;
    }
}

/* Contact card: less padding on mobile */
.tt-contact-card {
    padding: 1.5rem;
}
@media (min-width: 600px) {
    .tt-contact-card {
        padding: 2rem;
    }
}

/* Gallery grid on mobile: 2 columns */
.tt-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}
@media (min-width: 600px) {
    .tt-gallery-item {
        border-radius: 12px;
    }
}

/* ── Blazor error UI ─────────────────────────────────────────────────── */
#blazor-error-ui {
    background: #ffeded;
    border-top: 1px solid #e3c4c4;
    color: #333;
    display: none;
    font-size: 14px;
    padding: 12px 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ── Booking timeline bar (per-row slot indicator) ─────────────────── */
.booking-timeline {
    position: relative;
    height: 8px;
    background: #eeeeee;
    border-radius: 4px;
    overflow: hidden;
}

.booking-timeline-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ccc;
    z-index: 1;
}

.booking-timeline-slot {
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 4px;
    z-index: 2;
    transition: opacity 0.15s ease;
}

.booking-timeline--green  { background: #4caf50; }   /* 0–40% capacity */
.booking-timeline--orange { background: #ff9800; }   /* 40–80% capacity */
.booking-timeline--red    { background: #f44336; }   /* 80–100% capacity */

/* ── Change indicator ───────────────────────────────────────────────── */
.change-indicator {
    color: #e65100;
    font-weight: 600;
    font-size: 0.85em;
}
