/* NDNS Carta — Dark Cantina Theme */

:root {
    --bg: #0C0A0E;
    --surface: #1C1822;
    --border: #2E2838;
    --accent: #D4A843;
    --accent2: #E8C468;
    --text: #F0ECE4;
    --text2: #A89E8C;
    --text3: #6B6358;
    --radius: 10px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    text-align: center;
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.header-dot { color: var(--text3); }

/* Search */
.search-bar {
    position: fixed;
    top: 53px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg);
    padding: 8px 16px 8px;
}

.search-bar input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input::placeholder { color: var(--text3); }
.search-bar input:focus { border-color: var(--accent); }

/* Category Tabs */
.tabs {
    position: fixed;
    top: 97px;
    left: 0;
    right: 0;
    z-index: 98;
    background: var(--bg);
    display: flex;
    gap: 6px;
    padding: 6px 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border);
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.75rem;
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover { border-color: var(--accent); }

.tab.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.tab.active .tab-emoji { filter: none; }
.tab-emoji { font-size: 0.85rem; }

/* Main menu area */
.menu {
    padding: 150px 16px 24px;
}

/* Category sections */
.category {
    margin-bottom: 32px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent2);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* Item cards */
.items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 12px 14px;
    position: relative;
    transition: opacity 0.2s;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}
.price-dual {
    font-size: 0.78rem;
    font-weight: 500;
}

.item-desc {
    font-size: 0.8rem;
    color: var(--text2);
    margin-top: 4px;
    line-height: 1.4;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(212, 168, 67, 0.12);
    color: var(--accent2);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Unavailable / Agotado */
.item--unavailable {
    opacity: 0.4;
}

.item--unavailable .item-name,
.item--unavailable .item-price {
    text-decoration: line-through;
    text-decoration-color: var(--text3);
}

.badge-agotado {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #3A1520;
    color: #E85D75;
    padding: 2px 8px;
    border-radius: 8px;
}

/* Hidden by search */
.item.hidden,
.category.hidden {
    display: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 16px 48px;
    border-top: 1px solid var(--border);
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.footer-addr {
    font-size: 0.8rem;
    color: var(--text3);
    margin-bottom: 2px;
}

.footer-ig {
    font-size: 0.8rem;
    color: var(--text2);
}

.footer-hecho {
    font-size: 0.7rem;
    color: var(--text3);
    margin-top: 8px;
}

/* Header layout */
.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.header-nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 6px;
}

.header-nav a {
    color: var(--text3);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; font-size: 0.75rem; }
.lang-switcher a { color: var(--text3); padding: 2px 6px; border-radius: 4px; text-decoration: none; transition: color 0.2s; }
.lang-switcher a.active { color: var(--accent); font-weight: 600; }
.lang-switcher a:hover { color: var(--text); }

/* Smooth transitions for search */
.category, .item {
    transition: opacity 0.15s ease;
}
