/* ============================================
   TV Menu - Fixed Full-Screen Layout
   Designed for 42" Smart TV (1920x1080)
   NO SCROLLING - Everything fits on one screen
   ============================================ */

@font-face {
    font-family: 'Righteous';
    src: url('../fonts/Righteous-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #2c2c2c;
    -webkit-text-size-adjust: 100%;
}

/* ============================================
   MAIN CONTAINER - Fills entire viewport
   ============================================ */
.tv-menu-container {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    background: #f5f5f5;
}

/* ============================================
   HEADER
   ============================================ */
.menu-header {
    background: linear-gradient(135deg, #e5b370 0%, #d4a862 100%);
    padding: 1.2vh 2.5vw;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-logo .logo {
    width: 4.5vh;
    height: 4.5vh;
    object-fit: contain;
}

.menu-logo > div {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Righteous', sans-serif;
    font-size: 2.8vh;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
}

.menu-subtitle {
    font-size: 1.4vh;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.3vh;
    font-weight: 500;
}

.current-time {
    font-size: 3vh;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ============================================
   MENU CONTENT - 3-row grid filling all space
   Row 1: Access cards (compact)
   Row 2: Cafe + Boissons (compressed)
   Row 3: Professional services (expanded)
   ============================================ */
.menu-content {
    flex: 1;
    overflow: hidden !important;
    padding: 1.2vh 1.5vw;
    display: grid;
    grid-template-rows: auto 0.6fr 0.4fr;
    gap: 1vh;
    min-height: 0;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: 'Righteous', sans-serif;
    font-size: 2vh;
    color: #2c2c2c;
    margin-bottom: 0.8vh;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-title i {
    color: #e5b370;
    font-size: 0.9em;
}

/* ============================================
   ROW 1: ACCESS CARDS (Featured Section)
   ============================================ */
.featured-section {
    background: linear-gradient(135deg, #fff8e7 0%, #fffbf0 100%);
    padding: 1.2vh 1.5vw;
    border-radius: 8px;
    border: 2px solid #e5b370;
    box-shadow: 0 3px 10px rgba(229, 179, 112, 0.15);
}

.access-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2vw;
}

.access-card {
    background: white;
    border-radius: 8px;
    padding: 1.2vh 0.8vw;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.access-card:hover {
    border-color: #e5b370;
    box-shadow: 0 4px 12px rgba(229, 179, 112, 0.25);
}

.access-card.promo {
    border-color: #e5b370;
    background: linear-gradient(135deg, #fff 0%, #fff8e7 100%);
}

.access-icon {
    width: 5vh;
    height: 5vh;
    background: linear-gradient(135deg, #e5b370 0%, #d4a862 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8vh;
    font-size: 2.2vh;
    color: white;
    box-shadow: 0 2px 6px rgba(229, 179, 112, 0.3);
}

.access-name {
    font-size: 1.6vh;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.6vh;
    line-height: 1.3;
}

.access-price {
    margin-bottom: 0.3vh;
}

.price-value {
    font-size: 3.2vh;
    font-weight: 900;
    color: #e5b370;
    display: block;
    line-height: 1.2;
}

.original-access-price {
    font-size: 1.4vh;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
    margin-bottom: 0.3vh;
}

.free-label {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    padding: 0.4vh 1vw;
    border-radius: 4px;
    font-size: 2vh;
    display: inline-block;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.access-promo {
    background: linear-gradient(135deg, #e5b370 0%, #d4a862 100%);
    color: white;
    padding: 0.3vh 0.8vw;
    border-radius: 4px;
    font-size: 1.2vh;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.5vh;
}

/* ============================================
   ROW 2: BEVERAGES (Cafe + Boissons)
   ============================================ */
.beverages-section {
    display: grid;
    grid-template-columns: 1.0fr 0.62fr 1fr;
    gap: 1.2vw;
    overflow: hidden !important;
    min-height: 0;
}

.grid-category {
    background: white;
    border-radius: 8px;
    padding: 1.2vh 1.2vw;
    border: 2px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden !important;
}

.category-title {
    font-family: 'Righteous', sans-serif;
    font-size: 2vh;
    color: #2c2c2c;
    margin-bottom: 1vh;
    padding-bottom: 0.6vh;
    border-bottom: 2px solid #e5b370;
    display: flex;
    align-items: center;
    gap: 0.5vw;
    flex-shrink: 0;
}

.category-title i {
    color: #e5b370;
    font-size: 0.9em;
}

.category-label {
    margin-left: auto;
    background: linear-gradient(135deg, #e5b370 0%, #d4a862 100%);
    color: #ffffff;
    padding: 0.25vh 0.6vw;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1vh;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: uppercase;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 0.3vh 0.3vw;
    flex: 1;
    min-height: 0;
    overflow: hidden !important;
}

.grid-item {
    background: #fafafa;
    border-radius: 6px;
    padding: 0.8vh 0.6vw;
    text-align: center;
    border: 1px solid #eee;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.grid-item:hover {
    border-color: #e5b370;
    background: white;
    box-shadow: 0 2px 8px rgba(229, 179, 112, 0.15);
}

.grid-item-image {
    width: 15vh;
    height: 15vh;
    margin-bottom: 0.6vh;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-image i {
    font-size: 2vh;
    color: #e5b370;
    opacity: 0.6;
}

.grid-item-name {
    font-size: 2vh;
    font-weight: 600;
    color: #2c2c2c;
    line-height: 1.2;
    margin-bottom: 0.4vh;
}

.grid-item-price {
    font-size: 3vh;
    font-weight: 800;
    color: #e5b370;
}

.grid-item.image-only {
    padding: 0;
}

.grid-item.image-only .grid-item-image {
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    border: none;
    border-radius: inherit;
    background: transparent;
}

.grid-item.image-only .grid-item-image img {
    border-radius: inherit;
    object-fit: cover;
}

/* ============================================
   CAFÉ GRID - 4 columns to fit more items
   ============================================ */
.cafe-grid {
    grid-template-columns: repeat(3, 2fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
}

.cafe-grid .grid-item-image {
    width: 8vh;
    height: 8vh;
}

/* ============================================
   SNACKS FEATURED ITEM - Full bleed with text overlay
   ============================================ */

/* Make the items-grid itself stretch to fill the card */
.snacks-featured-grid {
    flex: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.snacks-featured-grid .grid-item {
    position: relative;
    /* Square: height fills available space, width matches height */
    height: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    min-height: 15vh; /* fallback for Smart TVs that ignore aspect-ratio */
    overflow: hidden;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: #111;
}

.snacks-featured-grid .grid-item:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(229, 179, 112, 0.35);
    border-color: transparent;
}

.snacks-featured-grid .grid-item.image-only,
.snacks-featured-grid .grid-item.image-only:hover {
    box-shadow: none;
    background: transparent;
}

/* Image covers the entire card */
.snacks-featured-grid .grid-item-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    max-width: unset;
    border-radius: 12px;
    border: none;
    background: none;
}

.snacks-featured-grid .grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Gradient overlay — bottom only, lighter, so image stays visible */
.snacks-featured-grid .grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 35%,
        rgba(0, 0, 0, 0) 60%
    );
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}

.snacks-featured-grid .grid-item.image-only::before {
    content: none;
}

.snacks-featured-grid .grid-item-category-label {
    position: absolute;
    top: 0.8vh;
    right: 0.7vw;
    left: auto;
    transform: none;
    background: radial-gradient(circle at 30% 30%, #ff7a7a 0%, #ff2a2a 42%, #cc0000 100%);
    color: #ffffff;
    border: 0.35vh solid #ffffff;
    border-radius: 50%;
    width: 16vh;
    height: 16vh;
    padding: 0.9vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Righteous', sans-serif;
    font-size: 2.3vh;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.05;
    text-transform: uppercase;
    white-space: normal;
    z-index: 4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.45),
        0 0 0 0.35vh rgba(255, 42, 42, 0.95),
        0 0 24px rgba(255, 42, 42, 0.65);
    pointer-events: none;
}

/* Price badge — anchored to bottom */
.snacks-featured-grid .grid-item-price {
    position: absolute;
    bottom: 1.2vh;
    left: 50%;
    top: unset;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid #e5b370;
    border-radius: 50px;
    padding: 0.4vh 1.4vw;
    color: #e5b370;
    font-size: 3.2vh;
    font-weight: 900;
    letter-spacing: 0.06em;
    white-space: nowrap;
    z-index: 2;
    text-shadow: 0 0 14px rgba(229, 179, 112, 1), 0 2px 6px rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 18px rgba(229, 179, 112, 0.5), inset 0 0 8px rgba(229, 179, 112, 0.1);
}

/* Product name — just above the price */
.snacks-featured-grid .grid-item-name {
    position: absolute;
    bottom: 5.8vh;
    top: unset;
    left: 0;
    right: 0;
    text-align: center;
    color: #ffffff;
    font-size: 1.9vh;
    font-weight: 700;
    line-height: 1.3;
    padding: 0 0.8vw;
    z-index: 2;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

/* ============================================
   ROW 3: PROFESSIONAL SERVICES
   ============================================ */
.professional-section {
    overflow: hidden !important;
    min-height: 0;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8vw;
    overflow: hidden !important;
}

.pro-card,
.service-card {
    background: white;
    border-radius: 8px;
    padding: 1.5vh 1.2vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8e8e8;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pro-card:hover,
.service-card:hover {
    border-color: #e5b370;
    box-shadow: 0 2px 8px rgba(229, 179, 112, 0.15);
}

.pro-icon,
.service-icon {
    display: none;
}

.pro-info,
.service-info {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.pro-name,
.service-name {
    font-size: 2vh;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 0.5vh;
    line-height: 1.3;
}

.pro-price,
.service-price {
    font-size: 2.5vh;
    font-weight: 800;
    color: #e5b370;
}

.pro-promo {
    margin-top: 0.4vh;
    font-size: 1.5vh;
    color: #28a745;
    font-weight: 600;
    font-style: italic;
}

/* Footer (if used) */
.menu-footer {
    background: #ffffff;
    border-top: 2px solid #e5b370;
    padding: 0.8vh 2vw;
    text-align: center;
    color: #666;
    font-size: 1.2vh;
    flex-shrink: 0;
}

/* ============================================
   MOBILE (scrollable on phones/tablets)
   ============================================ */
@media (max-width: 1024px) {
    html, body {
        overflow-y: auto !important;
        height: auto;
    }

    .tv-menu-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto !important;
    }

    .menu-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
        overflow: visible !important;
    }

    .menu-header {
        padding: 1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .current-time {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .featured-section {
        padding: 1.5rem;
    }

    .access-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .access-card {
        padding: 1.2rem 1rem;
    }

    .access-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .access-name {
        font-size: 1rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .beverages-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .items-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }

    .grid-item-image {
        width: 100px;
        height: 100px;
    }

    /* Snacks full-bleed card on mobile */
    .snacks-featured-grid {
        min-height: 260px;
    }

    .snacks-featured-grid .grid-item-image {
        width: 100% !important;
        height: 100% !important;
        position: absolute;
        inset: 0;
    }

    .snacks-featured-grid .grid-item-name {
        font-size: 1.1rem;
        top: unset;
        bottom: 52px;
    }

    .snacks-featured-grid .grid-item-price {
        font-size: 1.6rem;
        top: unset;
        bottom: 12px;
    }

    .grid-item-name {
        font-size: 0.9rem;
    }

    .grid-item-price {
        font-size: 1.1rem;
    }

    .pro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pro-card, .service-card {
        padding: 1rem;
        gap: 1rem;
    }

    .pro-icon, .service-icon {
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }

    .pro-name, .service-name {
        font-size: 0.95rem;
    }

    .pro-price, .service-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .access-cards {
        grid-template-columns: 1fr;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    html, body {
        overflow: visible !important;
        height: auto;
    }

    .tv-menu-container {
        height: auto;
        overflow: visible !important;
    }

    .menu-header {
        background: white !important;
        color: #2c2c2c;
        border-bottom: 2px solid #e5b370;
    }

    .logo-text, .current-time {
        color: #e5b370 !important;
    }

    .menu-content {
        overflow: visible !important;
        display: flex;
        flex-direction: column;
    }
}
