/* === Variables === */
:root {
    --primary: #d4a574;
    --primary-dark: #b8895a;
    --primary-light: rgba(212,165,116,0.15);
    --bg: #0a0a0a;
    --bg-card: #151515;
    --bg-card-hover: #1a1a1a;
    --bg-nav: rgba(10,10,10,0.95);
    --text: #f0ebe4;
    --text-light: #9a9590;
    --text-muted: #6b6560;
    --border: #2a2520;
    --border-featured: var(--primary);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --header-height: 60px;
    --nav-height: 52px;
}

/* === LIGHT THEME === */
[data-theme="light"] {
    --bg: #f5f5f7; --bg-card: #ffffff; --bg-card-hover: #f8f8f8;
    --bg-nav: rgba(255, 255, 255, 0.95);
    --text: #374151; --text-light: #6b7280; --text-muted: #9ca3af;
    --border: rgba(0, 0, 0, 0.1); --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --primary-light: rgba(212, 165, 116, 0.1);
}
.theme-toggle-float {
    position: fixed; bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px;
    border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; display: flex; align-items: center;
    justify-content: center; z-index: 1000; transition: all 0.2s;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.theme-toggle-float:hover { color: var(--text); transform: scale(1.1); }
@media print { .theme-toggle-float { display: none !important; } }

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--nav-height) + 16px); }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* === Container === */
.container { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

/* === Header === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-nav); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
}
.header-inner {
    max-width: 720px; margin: 0 auto; padding: 0 1.25rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}
.header-logo {
    font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700;
    color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 60%;
}
.header-logo img { height: 36px; }
.header-actions { display: flex; gap: 0.5rem; }
.header-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); transition: var(--transition);
}
.header-btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.header-btn-wa:hover { background: #25d366; border-color: #25d366; }

/* === Hero === */
.hero {
    padding: calc(var(--header-height) + 2.5rem) 1.25rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, #121210 0%, var(--bg) 100%);
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero h1 {
    font-family: var(--font-heading); font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 0.5rem;
    color: var(--text);
}
.hero p {
    font-size: 1.05rem; color: var(--text-light); max-width: 500px;
    margin: 0 auto;
}

/* === Category Nav === */
.category-nav {
    position: sticky; top: var(--header-height); z-index: 900;
    background: var(--bg-nav); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}
.category-nav-inner {
    max-width: 720px; margin: 0 auto;
    display: flex; align-items: center; gap: 0.25rem;
    overflow-x: auto; scrollbar-width: none;
    padding: 0 1rem; height: 100%;
    -webkit-overflow-scrolling: touch;
}
.category-nav-inner::-webkit-scrollbar { display: none; }
.category-tab {
    flex-shrink: 0; padding: 0.5rem 1rem;
    border-radius: 100px; font-size: 0.85rem; font-weight: 500;
    color: var(--text-light); background: transparent;
    border: 1px solid transparent; transition: var(--transition);
    white-space: nowrap; text-decoration: none;
}
.category-tab:hover { color: var(--text); background: var(--bg-card); }
.category-tab.active {
    color: var(--bg); background: var(--primary);
    border-color: var(--primary); font-weight: 600;
}
.category-icon { margin-right: 0.25rem; }

/* === Menu Content === */
.menu-content { padding-bottom: 1rem; }

.menu-section { padding: 2rem 0 1rem; }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-icon { font-size: 1.8rem; display: block; margin-bottom: 0.25rem; }
.section-title h2 {
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
    color: var(--text); margin-bottom: 0.25rem;
}
.section-title p { font-size: 0.9rem; color: var(--text-light); }

/* === Menu Items === */
.menu-items { display: flex; flex-direction: column; gap: 0.75rem; }

.menu-item {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: var(--transition);
}
.menu-item:hover { background: var(--bg-card-hover); border-color: #3a3530; }

.menu-item.featured {
    border-color: var(--border-featured);
    box-shadow: 0 0 0 1px var(--primary), 0 4px 20px rgba(212,165,116,0.1);
}

.menu-item-image {
    width: 100%; aspect-ratio: 16/9; overflow: hidden;
}
.menu-item-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.menu-item:hover .menu-item-image img { transform: scale(1.05); }

.menu-item-body { padding: 1rem 1.25rem; }

.menu-item-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 0.75rem; margin-bottom: 0.25rem;
}

.menu-item-name {
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600;
    color: var(--text); line-height: 1.3;
}
.badge-featured {
    color: var(--primary); font-size: 0.85rem; margin-left: 0.25rem;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.menu-item-price {
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    white-space: nowrap; flex-shrink: 0;
}

.menu-item-desc {
    font-size: 0.85rem; color: var(--text-light); line-height: 1.5;
    margin-bottom: 0.5rem;
}

.menu-item-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.badge {
    display: inline-flex; align-items: center; gap: 0.2rem;
    padding: 0.2rem 0.5rem; border-radius: 100px;
    font-size: 0.7rem; font-weight: 500;
    background: var(--primary-light); color: var(--text-light);
    border: 1px solid var(--border);
}
.badge-veg { background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.3); color: #81c784; }
.badge-vegan { background: rgba(56,142,60,0.1); border-color: rgba(56,142,60,0.3); color: #66bb6a; }
.badge-spicy { background: rgba(244,67,54,0.1); border-color: rgba(244,67,54,0.3); color: #ef5350; }
.badge-allergens { background: rgba(255,193,7,0.1); border-color: rgba(255,193,7,0.3); color: #ffd54f; }

/* === Info Section === */
.info-section {
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--border);
}

.info-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1rem 1.25rem;
}
.info-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-card strong { display: block; color: var(--text); margin-bottom: 0.15rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info-card p { color: var(--text-light); font-size: 0.9rem; margin: 0; }
.info-card a { color: var(--primary); }
.info-card a:hover { color: var(--text); }

/* === Social === */
.social-links { display: flex; gap: 0.75rem; justify-content: center; }
.social-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.25rem; border-radius: 100px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-light); font-size: 0.85rem; font-weight: 500;
    transition: var(--transition);
}
.social-btn:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.social-btn svg { stroke: currentColor; }

/* === Footer === */
.footer {
    padding: 1.5rem 0; text-align: center; font-size: 0.8rem;
    color: var(--text-muted); border-top: 1px solid var(--border);
}

/* === Back to Top === */
.back-to-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px;
    border-radius: 50%; background: var(--primary); color: var(--bg); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 900;
    box-shadow: 0 4px 12px rgba(212,165,116,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* === Messages === */
.messages-container {
    position: fixed; top: calc(var(--header-height) + 8px);
    left: 50%; transform: translateX(-50%); z-index: 999;
    max-width: 400px; width: 90%;
}
.alert {
    padding: 0.85rem 1.25rem; border-radius: var(--radius);
    margin-bottom: 0.5rem; font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}
.alert-success { background: #1a2e1a; color: #81c784; border: 1px solid #2e4a2e; }
.alert-error { background: #2e1a1a; color: #ef5350; border: 1px solid #4a2e2e; }
@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* === Responsive === */
@media (min-width: 480px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    :root { --header-height: 64px; --nav-height: 56px; }
    .container { padding: 0 2rem; }
    .hero { padding-top: calc(var(--header-height) + 3.5rem); padding-bottom: 2.5rem; }
    .hero h1 { font-size: 2.8rem; }
    .menu-section { padding: 2.5rem 0 1.5rem; }
    .menu-item-body { padding: 1.25rem 1.5rem; }
    .menu-item-name { font-size: 1.15rem; }
}
