/* Standalone Digital Menu - Royal Midnight Blue & Gold Ambient Glow Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #0c080d;
    --card-bg: linear-gradient(145deg, rgba(26, 20, 28, 0.9) 0%, rgba(16, 12, 18, 0.95) 100%);
    --card-hover: linear-gradient(145deg, rgba(38, 28, 40, 0.95) 0%, rgba(24, 16, 26, 0.98) 100%);
    --gold: #ffcc00;
    --gold-light: #ffe57f;
    --gold-glow: rgba(255, 204, 0, 0.35);
    --gold-subtle: rgba(255, 204, 0, 0.15);
    --red-brand: #d63031;
    --red-glow: rgba(214, 48, 49, 0.45);
    --text-main: #f8f9fa;
    --text-muted: #a0a5b5;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(255, 204, 0, 0.35);
    --danger: #e74c3c;
    --success: #2ecc71;
    --radius: 16px;
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(circle at 50% 8%, rgba(214, 48, 49, 0.18) 0%, rgba(7, 9, 14, 0) 50%),
                radial-gradient(circle at 15% 55%, rgba(255, 204, 0, 0.12) 0%, rgba(7, 9, 14, 0) 45%),
                radial-gradient(circle at 85% 85%, rgba(214, 48, 49, 0.12) 0%, rgba(7, 9, 14, 0) 45%),
                linear-gradient(180deg, #0c080d 0%, #050407 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Header & Banner */
.menu-header {
    background: linear-gradient(180deg, rgba(20, 14, 22, 0.97) 0%, rgba(12, 8, 14, 0.99) 100%);
    border-bottom: 2px solid var(--red-brand);
    padding: 32px 16px 24px 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-logo-img {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.5), 0 0 50px rgba(214, 48, 49, 0.35);
    object-fit: cover;
    background: #ffffff;
    padding: 4px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.65), 0 0 70px rgba(212, 175, 55, 0.25);
}

.restaurant-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 16px var(--gold-glow);
    margin-top: 10px;
}

.restaurant-tagline {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 500;
}

.header-info-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-size: 13px;
}

.header-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--gold-subtle);
    color: var(--text-main);
}

/* Search Bar & Sticky Navigation */
.sticky-nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 11, 18, 0.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-gold);
    padding: 14px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.search-box-wrapper {
    max-width: 600px;
    margin: 0 auto 12px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: rgba(20, 26, 40, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: 25px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    background: rgba(26, 34, 52, 0.95);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 16px;
}

/* Category Pills Bar */
.category-scroll-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.category-scroll-bar::-webkit-scrollbar {
    display: none;
}

.cat-pill {
    padding: 9px 18px;
    background: rgba(20, 26, 40, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cat-pill.active, .cat-pill:hover {
    background: linear-gradient(135deg, #d63031 0%, #ff7675 100%);
    color: #ffffff;
    font-weight: 700;
    border-color: #d63031;
    box-shadow: 0 4px 16px rgba(214, 48, 49, 0.45);
}

/* Menu Section */
.menu-container {
    max-width: 1080px;
    margin: 20px auto;
    padding: 0 16px;
}

.category-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin: 32px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 10px;
    text-shadow: 0 0 10px var(--gold-subtle);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Food Card */
.food-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.food-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.25);
    background: var(--card-hover);
}

.food-card.unavailable {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.food-img-wrapper {
    width: 100%;
    height: 195px;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: #151a26;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.food-card:hover .food-img {
    transform: scale(1.08);
}

/* Badges */
.badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 2;
}

.badge-tag {
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.badge-veg { background: rgba(46, 204, 113, 0.9); color: #fff; }
.badge-spicy { background: rgba(231, 76, 60, 0.9); color: #fff; }
.badge-special { background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%); color: #000; }
.badge-out { background: rgba(0, 0, 0, 0.85); color: var(--danger); border: 1px solid var(--danger); }

.food-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.food-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.food-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.food-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    text-shadow: 0 0 10px var(--gold-subtle);
}

.food-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Lightbox */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: linear-gradient(145deg, rgba(20, 26, 40, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.show .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold);
    border: 1px solid var(--gold-subtle);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.modal-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 14px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Admin Specific Styles */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-gold);
    margin-bottom: 20px;
}

.btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gold { background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 100%); color: #000; font-weight: 700; }
.btn-gold:hover { opacity: 0.95; box-shadow: 0 0 15px var(--gold-glow); }

.btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: 5px 12px; font-size: 12px; }

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #2b3242;
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--success); }
input:checked + .slider:before { transform: translateX(22px); }

.quick-price-input {
    width: 95px;
    padding: 5px 8px;
    background: #0d1017;
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #0d1017;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

select.form-control option {
    background: #0d1017;
    color: #fff;
}

/* Mobile Responsive 2-Column Grid Layout */
@media (max-width: 580px) {
    .menu-container {
        padding: 0 10px;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .food-card {
        border-radius: 12px;
    }
    .food-img-wrapper {
        height: 130px;
    }
    .badge-overlay {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
    .badge-tag {
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 4px;
    }
    .food-content {
        padding: 10px;
    }
    .food-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin-bottom: 4px;
    }
    .food-title {
        font-size: 13.5px;
        line-height: 1.25;
        font-weight: 600;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .food-price {
        font-size: 13px;
        font-weight: 700;
        margin-top: 2px;
    }
    .food-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-height: 1.35;
    }
    .category-heading {
        font-size: 18px;
        margin: 20px 0 12px 0;
    }
}
