/* Restaurant Menu - New Theme CSS */

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

/* ===== INTRO SCREEN ===== */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 0.8s ease 2.5s forwards;
}

.intro-content {
    text-align: center;
    animation: fadeInScale 1s ease;
}

.intro-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s ease infinite;
}

.intro-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

/* ===== HEADER ===== */
.menu-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== WIFI BAR ===== */
.wifi-bar {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  	color:#ebd928;
    position: fixed;
    top: 65px; /* Below header */
    left: 0;
    right: 0;
    z-index: 999;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    animation: slideDown 0.5s ease;
}

.wifi-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wifi-content i {
    font-size: 18px;
}

.wifi-label {
    font-weight: 600;
    text-transform: uppercase;
  	
}

.wifi-divider {
    opacity: 0.6;
}

.wifi-network,
.wifi-password {
  	color: white;
    font-size: 13px;
}

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

/* Navigation Menu Button */
.navbar-toggler {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.navbar-toggler-icon {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-color: #ddd;
}

/* Logo */
.logo-container {
    text-align: center;
}

.logo-image {
    max-width: 100%;
    object-fit: contain;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
}

.language-select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 14px;
    padding: 4px 8px;
    width: auto;
    min-width: 60px;
}

.language-select option {
    background-color: #2d2d2d;
    color: white;
}

/* ===== NAVIGATION SIDEBAR ===== */
.nav-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: 1100;
    transition: left 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.nav-sidebar.active {
    left: 0;
}

.nav-content {
    padding: 80px 30px 30px;
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-close:hover {
    transform: rotate(90deg);
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 15px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: 86px;
    padding: 30px 0 100px;
    min-height: calc(100vh - 86px);
}

/* Adjust main content when wifi bar is present */
body:has(.wifi-bar) .main-content {
    margin-top: 132px; /* Header (86px) + WiFi bar (46px) */
    min-height: calc(100vh - 132px);
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 37px;
    font-weight: 700;
    color: #2d2d2d;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.category-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 60px 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.category-banner .category-title {
    position: relative;
    z-index: 2;
    color: white;
    margin: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: 2fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.sparkle-effect {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

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

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 25px 30px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.product-price {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.product-description {
    margin-bottom: 20px;
}

.ingredients {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.ingredients strong {
    color: #2d2d2d;
}

/* ===== ALLERGIES SECTION ===== */
.allergies {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.allergies-label {
    font-weight: 600;
    color: #2d2d2d;
    font-size: 16px;
}

.allergen-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.allergen-icon {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.allergen-icon:hover {
    transform: scale(1.15);
}

.allergen-icon:active {
    transform: scale(0.95);
}

.allergen-icon-img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Allergen name display on click */
.allergen-name-display {
    display: none;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.allergen-name-display.active {
    display: block;
}

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

.allergen-letter {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #6c757d;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* ===== FLOATING MENU ===== */
.floating-menu-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-menu-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.floating-menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.floating-menu-btn:hover::before {
    transform: scale(1);
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.5);
}

.floating-menu-btn i {
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.menu-text {
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ===== FLOATING CATEGORIES ===== */
.floating-categories {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 300px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    transform-origin: bottom right;
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
}

.floating-categories.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.category-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

.category-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
    color: #007bff;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
}

.category-btn i {
    font-size: 20px;
}

/* ===== OVERLAY ===== */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* WiFi bar mobile */
    .wifi-bar {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .wifi-content {
        gap: 6px;
        font-size: 11px;
    }
    
    .wifi-content i {
        font-size: 14px;
    }
    
    .wifi-network,
    .wifi-password {
        font-size: 11px;
    }
    
    .wifi-divider {
        display: none;
    }
    
    body:has(.wifi-bar) .main-content {
        margin-top: 124px; /* Adjusted for smaller WiFi bar */
    }
    
    .category-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-name {
        font-size: 20px;
    }
    
    .allergies {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .floating-categories {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 110px;
    }
    
    .floating-menu-container {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-menu-btn {
        width: 70px;
        height: 70px;
    }
    
    .category-banner {
        padding: 40px 20px;
    }
}

@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 900px;
    }
    
    .product-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }
    
    .product-image-container {
        width: 40%;
        height: auto;
        min-height: 250px;
    }
    
    .product-info {
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}
