/* ===================================
   GURME - Profesyonel QR Menü
   Premium Restaurant Experience
   =================================== */

:root {
    --primary: #B8860B;
    --primary-light: #DAA520;
    --primary-glow: rgba(184, 134, 11, 0.25);
    --secondary: #1a1a2e;
    --dark: #111827;
    --text: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg: #fafaf8;
    --card-bg: #ffffff;
    --border: rgba(0,0,0,0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --nav-height: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Hide Google translate widget; keep programmatic use */
#google_translate_element {
    position: fixed;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.skiptranslate iframe {
    display: none !important;
}

body {
    top: 0 !important;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #22597a;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-default {
    background: linear-gradient(135deg, var(--secondary) 0%, #16213e 40%, #0f3460 70%, #1a1a3e 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.hero-brand {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
}

.language-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lang-btn {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

.lang-btn.active {
    background: #fff;
    color: var(--secondary);
    border-color: #fff;
    font-weight: 600;
}

.hero-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-slogan {
    position: absolute;
    top: 82px;
    left: 16px;
    z-index: 3;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}

.hero-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.2rem;
    color: #fff;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 6px;
}

.closed-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 28px;
    background: rgba(220,38,38,0.9);
    color: #fff;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== CATEGORY NAV ===== */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.category-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.category-nav-inner {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar { display: none; }

.cat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f3f4f6;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border: 1.5px solid transparent;
}

.cat-pill:hover {
    background: rgba(184,134,11,0.08);
    color: var(--primary);
    border-color: rgba(184,134,11,0.15);
}

.cat-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    border-color: var(--primary);
}

.cat-icon { font-size: 1.1rem; line-height: 1; }


/* ===== SEARCH ===== */
.search-section {
    padding: 16px 20px;
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 18px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box i { color: var(--text-muted); font-size: 0.9rem; }

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: transparent;
    color: var(--text);
}

.search-box input::placeholder { color: #d1d5db; }

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    display: flex;
}

/* ===== MENU SECTIONS ===== */
.menu-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.menu-section {
    margin-bottom: 40px;
    scroll-margin-top: calc(var(--nav-height) + 20px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 0 4px;
}

.section-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(184,134,11,0.08), rgba(184,134,11,0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.section-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.2;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: row;
    animation: cardIn 0.5s ease both;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: rgba(184,134,11,0.12);
}

.product-card:focus-visible {
    outline: 3px solid rgba(184,134,11,0.45);
    outline-offset: 2px;
}

.product-card.hidden {
    display: none;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-image {
    width: 130px;
    min-height: 130px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img { transform: scale(1.08); }

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-badge.chef {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.product-badge.new-item {
    background: #10b981;
    color: #fff;
}

.product-info {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.star-badge {
    font-size: 0.85rem;
    margin-left: 4px;
}

.new-text-badge {
    font-size: 0.6rem;
    background: #10b981;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 6px;
    font-weight: 700;
}

.product-tags {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.tag {
    font-size: 0.85rem;
    line-height: 1;
}

.product-desc {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.price-old {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.prep-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-allergens {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== PRODUCT MODAL ===== */
.modal-open {
    overflow: hidden;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
}

.product-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,0.55);
    backdrop-filter: blur(4px);
}

.product-modal-dialog {
    position: relative;
    width: min(92vw, 460px);
    max-height: 90vh;
    margin: 0;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}

.product-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(17,24,39,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
}

.product-modal-image {
    height: 220px;
    background: #f3f4f6;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-modal-body {
    padding: 18px;
    max-height: calc(90vh - 220px);
    overflow-y: auto;
}

.product-modal-name {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-modal-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.product-modal-desc {
    color: var(--text-light);
    margin-bottom: 14px;
    font-size: 0.92rem;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-modal-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== FOOTER ===== */
.menu-footer {
    background: var(--secondary);
    color: rgba(255,255,255,0.7);
    padding: 40px 20px;
    text-align: center;
}

.wifi-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.wifi-card > i {
    font-size: 1.4rem;
    color: var(--primary);
}

.wifi-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}

.wifi-pass {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.wifi-copy {
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.wifi-copy:hover { background: rgba(255,255,255,0.15); color: #fff; }

.footer-info {
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.footer-info a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-info a:hover { color: var(--primary); }

.footer-info i { color: var(--primary); margin-right: 6px; width: 16px; }

.footer-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 30px;
}

.social-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn.instagram { background: linear-gradient(135deg, #833AB4, #E1306C, #F77737); }
.social-btn.facebook { background: #1877F2; }
.social-btn.whatsapp { background: #25D366; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.footer-brand {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.footer-brand small {
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .hero { height: 220px; }
    .hero-bg-img {
        object-fit: contain;
        object-position: center;
    }
    .hero-title { font-size: 1.6rem; letter-spacing: 3px; }
    .hero-brand { top: 12px; left: 12px; }
    .hero-logo { width: 44px; height: 44px; }
    .language-switcher { top: 10px; right: 10px; gap: 4px; padding: 5px; }
    .lang-btn { padding: 5px 8px; font-size: 0.66rem; }
    .hero-slogan {
        top: auto;
        left: 0;
        right: 0;
        bottom: 14px;
        text-align: center;
        font-size: 0.8rem;
    }
    
    .category-nav-inner { padding: 10px 14px; gap: 6px; }
    .cat-pill { padding: 8px 14px; font-size: 0.8rem; }
    
    .search-section { padding: 12px 14px; }
    .search-box { border-radius: 12px; }
    .search-box input { padding: 12px 10px; font-size: 0.9rem; }
    
    .menu-content { padding: 0 12px 30px; }
    .menu-section { margin-bottom: 30px; }
    
    .section-header { gap: 12px; }
    .section-icon { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; }
    .section-title { font-size: 1.25rem; }
    
    .product-image { width: 110px; min-height: 110px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 0.92rem; }
    .product-desc { font-size: 0.78rem; -webkit-line-clamp: 2; }
    .price-current { font-size: 0.95rem; }

    .product-modal-dialog {
        width: 94vw;
        margin: 0;
        max-height: 86vh;
        border-radius: 14px;
    }

    .product-modal-image {
        height: 180px;
    }

    .product-modal-body {
        max-height: calc(86vh - 180px);
        padding: 12px;
    }

    .product-modal-name {
        font-size: 1.05rem;
        margin-bottom: 8px;
    }

    .product-modal-desc {
        font-size: 0.86rem;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .product-modal-price .price-current {
        font-size: 0.98rem;
    }

    .product-modal-meta {
        font-size: 0.78rem;
    }
    
    .wifi-card { padding: 14px 18px; gap: 12px; }
    .menu-footer { padding: 30px 16px; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .product-image { width: 140px; }
}

@media (min-width: 901px) {
    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .product-card { flex-direction: column; }
    .product-image { width: 100%; height: 180px; min-height: auto; }
    .product-info { padding: 18px; }
}

/* ===== ANIMATIONS ===== */
.menu-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: none;
}

.no-results.show { display: block; }
.no-results i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: #e5e7eb; }

/* Toast notification */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--secondary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 200;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
