/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    /* Colors */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #141414;
    --color-bg-accent: #1a1a1a;
    --color-gold: #f4c430;
    --color-gold-light: #ffd966;
    --color-gold-dark: #d4a017;
    --color-text-primary: #ffffff;
    --color-text-secondary: #cccccc;
    --color-text-muted: #999999;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(244, 196, 48, 0.15);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Geometric Pattern Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, transparent 48%, rgba(244, 196, 48, 0.02) 49%, rgba(244, 196, 48, 0.02) 51%, transparent 52%),
        linear-gradient(150deg, transparent 48%, rgba(244, 196, 48, 0.02) 49%, rgba(244, 196, 48, 0.02) 51%, transparent 52%),
        linear-gradient(90deg, transparent 48%, rgba(244, 196, 48, 0.01) 49%, rgba(244, 196, 48, 0.01) 51%, transparent 52%);
    background-size: 80px 80px;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   CONTAINER
   ======================================== */

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER
   ======================================== */

.menu-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(var(--shadow-gold));
    animation: fadeInDown 0.8s ease-out;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 4px 20px rgba(244, 196, 48, 0.4);
}

.brand-subtitle {
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: 0.25rem;
    color: var(--color-text-secondary);
    font-family: var(--font-body);
}

.menu-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin: var(--spacing-md) 0;
    position: relative;
    display: inline-block;
    animation: fadeIn 1s ease-out 0.3s both;
    text-shadow: 0 6px 30px rgba(244, 196, 48, 0.5);
}

.menu-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* ========================================
   SEARCH CONTAINER
   ======================================== */

.search-container {
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
    animation: fadeIn 1s ease-out 0.5s both;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(244, 196, 48, 0.05);
    border: 2px solid rgba(244, 196, 48, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(244, 196, 48, 0.08);
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
}

.search-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.25rem 0;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.clear-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(244, 196, 48, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: var(--spacing-xs);
    flex-shrink: 0;
}

.clear-search:hover {
    background: rgba(244, 196, 48, 0.3);
    transform: rotate(90deg);
}

.clear-search svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-gold);
}

/* Search highlight effect */
.menu-item.search-highlight {
    background: rgba(244, 196, 48, 0.05);
    padding-left: var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.menu-item.search-highlight .item-name {
    color: var(--color-gold-light);
}

/* ========================================
   CATEGORY NAVIGATION
   ======================================== */

.category-nav {
    display: flex;
    gap: var(--spacing-xs);
    overflow-x: auto;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) transparent;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Sticky navigation */
.category-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(244, 196, 48, 0.2);
    animation: slideDown 0.3s ease-out;
    margin-bottom: 0;
}

.category-nav.sticky::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Hide scrollbar for Chrome/Safari */
.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-nav::-webkit-scrollbar-track {
    background: transparent;
}

.category-nav::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 2px;
}

.category-btn {
    flex-shrink: 0;
    background: rgba(244, 196, 48, 0.1);
    border: 1px solid rgba(244, 196, 48, 0.2);
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(244, 196, 48, 0.15);
    border-color: rgba(244, 196, 48, 0.4);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

.category-btn.active:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
    transform: translateY(-2px);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   SECTIONS
   ======================================== */

.menu-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
}

.menu-section {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-accent) 100%);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(244, 196, 48, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.menu-section:nth-child(1) { animation-delay: 0.1s; }
.menu-section:nth-child(2) { animation-delay: 0.15s; }
.menu-section:nth-child(3) { animation-delay: 0.2s; }
.menu-section:nth-child(4) { animation-delay: 0.25s; }
.menu-section:nth-child(5) { animation-delay: 0.3s; }
.menu-section:nth-child(6) { animation-delay: 0.35s; }
.menu-section:nth-child(7) { animation-delay: 0.4s; }
.menu-section:nth-child(8) { animation-delay: 0.45s; }

.menu-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gold);
    text-transform: capitalize;
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent);
    border-radius: 2px;
}

/* ========================================
   SUBSECTIONS
   ======================================== */

.subsection {
    margin-bottom: var(--spacing-xl);
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(244, 196, 48, 0.1);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    display: inline-block;
    border-left: 4px solid var(--color-gold);
}

/* ========================================
   MENU ITEMS
   ======================================== */

.menu-grid {
    display: grid;
    gap: var(--spacing-md);
}

.menu-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover {
    padding-left: var(--spacing-xs);
    border-bottom-color: rgba(244, 196, 48, 0.2);
}

.menu-item:hover .item-name {
    color: var(--color-gold-light);
}

.menu-item:hover .item-price {
    color: var(--color-gold-light);
    transform: scale(1.05);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: clamp(0.875rem, 2vw, 1rem);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.item-dots {
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        rgba(244, 196, 48, 0.3) 0px,
        rgba(244, 196, 48, 0.3) 4px,
        transparent 4px,
        transparent 8px
    );
    min-width: 30px;
}

.item-price {
    font-weight: 700;
    color: var(--color-gold);
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    white-space: nowrap;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

/* ========================================
   FOOTER
   ======================================== */

.menu-footer {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, #0a0a0a 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-xxl);
    border: 1px solid rgba(244, 196, 48, 0.2);
    box-shadow: var(--shadow-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    background: rgba(244, 196, 48, 0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-link:hover {
    color: var(--color-gold);
    background: rgba(244, 196, 48, 0.1);
    border-color: rgba(244, 196, 48, 0.3);
    transform: translateY(-2px);
}

.contact-link .icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-gold);
}

.footer-brand {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-brand p:first-child {
    font-weight: 600;
    color: var(--color-gold);
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

/* CodeRigi Credit */
.coderigi-credit {
    text-align: center;
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border-top: 1px solid rgba(244, 196, 48, 0.1);
}

.coderigi-credit p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.love-emoji {
    font-size: 1.125rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.coderigi-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.coderigi-link:hover {
    transform: translateY(-2px);
}

.coderigi-logo {
    height: 20px;
    width: auto;
    filter: brightness(0.8);
    transition: all 0.3s ease;
}

.coderigi-link:hover .coderigi-logo {
    filter: brightness(1);
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 768px) {
    .menu-container {
        padding: var(--spacing-xl);
    }
    
    .menu-header {
        padding: var(--spacing-xxl) 0;
    }
    
    .menu-section {
        padding: var(--spacing-xxl) var(--spacing-xl);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .contact-info {
        flex-direction: row;
        gap: var(--spacing-lg);
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .logo {
        max-width: 150px;
    }
    
    .menu-section:hover {
        transform: translateY(-6px);
    }
    
    .item-name {
        font-size: 1.0625rem;
    }
    
    .item-price {
        font-size: 1.125rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    body::before {
        display: none;
    }
    
    .menu-section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .menu-footer {
        box-shadow: none;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-bg-primary: #000000;
        --color-bg-secondary: #000000;
        --color-text-primary: #ffffff;
        --color-gold: #ffff00;
    }
}
