/* 🛠️ Compact Centered Canvas Layout Stylesheet */

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

html {
    scroll-behavior: smooth;
    background-color: #0c0c0d; /* Outer margins backdrop color */
}

body {
    /* 🎯 This wraps the whole web application into a neat, centered column container box */
    max-width: 480px;
    margin: 0 auto;
    background-color: #121212; /* Inner page canvas color */
    color: #f4f4f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8); /* Elegant outer boundary shadow shading */
    min-height: 100vh;
    padding-bottom: 120px;
}

/* Header Banner Layout */
header {
    background-color: #1c1c1e;
    border-bottom: 1px solid #2c2c2e;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 40;
}

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

.brand-name {
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.brand-sub {
    font-size: 12px;
    color: #a1a1aa;
    margin-top: 4px;
}

.tag-badge {
    background-color: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.brand-quote {
    font-size: 14px;
    color: #a1a1aa;
    margin-top: 16px;
    border-left: 2px solid #f59e0b;
    padding-left: 12px;
    font-style: italic;
}

/* Call Shortcuts Layout */
.button-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-base {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}

.btn-call {
    background-color: #2c2c2e;
    color: #e4e4e7;
    border: 1px solid rgba(63, 63, 70, 0.5);
}

.btn-whatsapp {
    background-color: #059669;
    color: #ffffff;
    transition: transform 0.1s ease;
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

/* Red Circular Capsule Navigation Bar Matching the Screenshot */
nav {
    background-color: #121212;
    border-bottom: 1px solid #1c1c1e;
    position: sticky;
    top: 155px;
    z-index: 30;
    padding: 16px;
}

.nav-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

/* 🔴 Style rules configured to look exactly like the screenshot capsule pills */
.pill-link {
    padding: 8px 18px;
    background-color: transparent;
    color: #ffffff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #dc2626; /* Deep Red outlines */
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* Highlight style rule for the active first category tag */
.pill-link.active-pill {
    background-color: #dc2626;
    color: #ffffff;
}

/* Main Contents Area */
main {
    padding: 16px;
}

.category-block {
    margin-bottom: 32px;
    scroll-margin-top: 230px;
}

.category-banner {
    position: relative;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #1c1c1e;
    border: 1px solid #2c2c2e;
}

.category-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.category-title {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 🚀 NEW CLICKABLE ORDER SYSTEM CARDS */
.food-card {
    position: relative;
    height: 160px;
    border-radius: 14px;
    border: 1px solid #2c2c2e;
    overflow: hidden;
    background-color: #1c1c1e;
    margin-bottom: 4px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.food-card:hover {
    transform: translateY(-2px);
    border-color: #3a3a3c;
}

.food-card:active {
    transform: scale(0.99);
}

/* 🟢 Style for when a card is selected into the checkout basket */
.food-card.selected-card {
    border-color: #22c55e !important; /* Vivid green boundary halo */
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

/* Dynamic counter bubble indicator styling */
.selection-badge {
    background-color: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-shadow: none;
}

/* Background image engine layer */
.food-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95; /* Brightened up from 0.45 so the original photo shows at full vibrance */
    z-index: 1;
}

/* Shading mask overlay filtering - Optimized for colorful food presentation */
.food-card-overlay {
    position: absolute;
    inset: 0;
    /* Reduced dark opacity significantly so your food is completely visible, adding a smooth fade out only at the bottom */
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.85) 100%);
    z-index: 2;
}

/* Floating content alignment configuration */
.food-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}

.item-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.item-name {
    font-size: 18px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 6px;
    /* Increased text-shadow depth so white lettering is clearly readable over bright food photos */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 0px 0px 4px rgba(0, 0, 0, 0.8);
}

.item-description {
    font-size: 12px;
    color: #ffffff; /* Flipped to bright white for high contrast backdrop readability */
    font-weight: 500;
    line-height: 1.4;
    max-width: 270px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 1);
}

.item-price-wrapper {
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.item-price {
    color: #fbbf24;
    font-weight: 900;
    font-size: 18px;
    font-family: monospace;
    /* High contrast protection shadow outline */
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
}

/* Sticky Bottom Call-to-action Footer Element pinned to the container box width */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px; /* Locks button layout width to body boundaries */
    z-index: 50;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #2c2c2e;
    padding: 16px;
    transition: background-color 0.3s ease;
}

.btn-submit-review {
    width: 100%;
    background-color: #ffffff;
    color: #000000;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.btn-submit-review:active {
    transform: scale(0.99);
}

/* Ensure seamless rendering on all native mobile device widths */
@media (max-width: 480px) {
    html {
        background-color: #121212;
    }
    body {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    footer {
        max-width: 100%;
        left: 0;
    }
}
