/* ==========================================
   TUNEL QR MENU - PREMIUM MODERN STYLES
   ========================================== */

/* Global Variables & Theme Setup */
:root {
    --transition-speed: 0.3s;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --accent-color: #d4af37; /* Warm Gold */
    --accent-glow: rgba(212, 175, 55, 0.25);
    
    /* Dark Theme Colors (Default) */
    --bg-main: #0b0f19;
    --bg-surface: #151d30;
    --bg-surface-hover: #1e2942;
    --bg-glass: rgba(21, 29, 48, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --shadow-main: rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Light Theme overrides */
body.light-theme {
    --bg-main: #faf8f5; /* Premium soft cream */
    --bg-surface: #ffffff;
    --bg-surface-hover: #f5f3ef;
    --bg-glass: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --shadow-main: rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 15px rgba(163, 131, 44, 0.15);
    --accent-color: #a3832c; /* Slightly darker gold for contrast */
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

/* Container limits */
.main-header,
.sticky-nav,
.menu-container,
.menu-footer {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.main-header {
    padding: 20px 16px 10px 16px;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-glow);
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.control-btn {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 6px -1px var(--shadow-main);
}

.control-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

/* Language Dropdown Customization */
.language-dropdown {
    position: relative;
}

#lang-select-btn {
    width: auto;
    padding: 0 16px;
    border-radius: 20px;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.dropdown-menu a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

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

.dropdown-menu a:hover {
    background-color: var(--bg-surface-hover);
    color: var(--accent-color);
}

.dropdown-menu a.active {
    background-color: var(--bg-surface-hover);
    color: var(--accent-color);
    font-weight: 600;
}

.header-body {
    text-align: center;
    margin-top: 10px;
}

.business-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.business-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

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

.search-box input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ==========================================
   STICKY CATEGORIES NAV
   ========================================== */

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px var(--shadow-main);
    transition: background-color var(--transition-speed);
}

.nav-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 14px 10px;
    gap: 8px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.nav-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 18px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: capitalize;
}

.nav-item:hover,
.nav-item.active {
    color: var(--bg-main);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.nav-item.active {
    transform: scale(1.05);
}

.loading-placeholder-nav {
    height: 35px;
    width: 100%;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-surface-hover) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

/* ==========================================
   MENU LIST CONTENT
   ========================================== */

.menu-container {
    padding: 24px 16px;
    min-height: 60vh;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Category Sections */
.category-section {
    margin-bottom: 40px;
    scroll-margin-top: 75px; /* Offset for sticky navigation header */
}

.category-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.category-title-main {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-title-greek {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
    text-transform: uppercase;
}

.category-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Footnotes inside categories */
.category-footnote {
    padding: 10px 14px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    border-left: 2px solid var(--text-muted);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 16px;
}

/* Food Grid Layout */
.food-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Food Card Design */
.food-card {
    display: flex;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px var(--shadow-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.food-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 15px -3px var(--shadow-main), var(--shadow-glow);
}

.food-image-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--bg-surface-hover);
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.no-image-placeholder span {
    font-size: 0.65rem;
    margin-top: 4px;
    font-weight: 500;
}

.food-details {
    display: flex;
    flex-direction: column;
    padding: 14px;
    flex-grow: 1;
    justify-content: space-between;
}

.food-info {
    margin-bottom: 8px;
}

.food-title-row {
    margin-bottom: 4px;
}

.food-title-main {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--text-primary);
}

.food-title-greek {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1px;
}

.food-desc-main {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 6px;
}

.food-desc-greek {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.food-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.food-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Add / Quantity Control Buttons */
.order-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add {
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-add:hover {
    background-color: var(--accent-color);
    color: var(--bg-main);
    border-color: var(--accent-color);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.qty-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-main);
    border-color: var(--accent-color);
}

.qty-val {
    width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

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

.menu-footer {
    padding: 40px 16px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.developer-note {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* ==========================================
   FLOATING CART / WAITER BUTTON
   ========================================== */

.floating-order-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-main);
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5), var(--shadow-glow);
    cursor: pointer;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: pulseGlow 2s infinite;
}

.floating-order-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.6), var(--shadow-glow);
}

.floating-order-btn.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.order-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444; /* Alert Red */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
}

/* ==========================================
   WAITER ORDER DRAWER
   ========================================== */

.order-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease-in-out;
}

.order-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-content {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
}

.order-drawer-overlay.open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-surface-hover);
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent-color);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.waiter-instruction {
    background-color: var(--accent-glow);
    border-left: 4px solid var(--accent-color);
    padding: 12px 14px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.waiter-instruction i {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-top: 1px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

/* Item row inside cart drawer */
.drawer-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: var(--bg-surface-hover);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.drawer-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    padding-right: 12px;
}

.drawer-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.drawer-item-greek {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.drawer-item-price-calc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.drawer-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    margin-left: 4px;
    transition: transform 0.15s;
}

.drawer-item-remove:hover {
    transform: scale(1.15);
}

.order-summary-box {
    margin-top: auto;
    padding: 16px;
    background-color: var(--bg-surface-hover);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.total-price-row {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.total-price-row .summary-value {
    color: var(--accent-color);
}

.drawer-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    background-color: var(--bg-surface-hover);
}

/* Button Classes */
.btn {
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-main);
    flex-grow: 2;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    flex-grow: 1;
}

.btn-secondary:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ==========================================
   WAITER FULLSCREEN MODAL (HIGH VISIBILITY)
   ========================================== */

.waiter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000; /* Pure black to focus attention */
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.waiter-modal.open {
    display: flex;
}

.waiter-modal-content {
    background-color: #111111;
    border: 3px solid var(--accent-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.4);
}

.waiter-modal-header {
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.waiter-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.waiter-modal-header h2 i {
    color: var(--accent-color);
}

.waiter-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

.waiter-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.waiter-modal-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.waiter-modal-qty {
    background-color: var(--accent-color);
    color: #000000;
    font-weight: 800;
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.waiter-modal-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.waiter-modal-name {
    font-weight: 700;
    font-size: 1.3rem;
    color: #ffffff;
}

.waiter-modal-greek {
    font-size: 1.05rem;
    color: #aaaaaa;
    font-style: italic;
}

.waiter-modal-footer {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    background-color: #1a1a1a;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.waiter-modal-footer button {
    width: 150px;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* ==========================================
   ANIMATIONS & KEYFRAMES
   ========================================== */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Responsive Media Queries */
@media (max-width: 480px) {
    .food-card {
        flex-direction: row;
    }
    
    .food-image-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .drawer-content {
        max-width: 100%;
    }
}
