/* ============================================
   PROFESSIONAL RESTAURANT MENU - MAIN STYLES
   ============================================ */

/* ============================================
   GOOGLE FONTS - Arabic Support
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #2d3436;
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   VIDEO HEADER
   ============================================ */
.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 50px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.hero-content h1 span {
    color: #fdcb6e;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 300;
}

.hero-content .btn-order {
    display: inline-block;
    padding: 16px 40px;
    background: #fdcb6e;
    color: #2d3436;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(253, 203, 110, 0.3);
}

.hero-content .btn-order:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(253, 203, 110, 0.4);
    background: #fdcb6e;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
    font-size: 30px;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   NAVBAR - Professional
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar {
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 24px;
    font-weight: 800;
    color: #2d3436;
    letter-spacing: -0.5px;
}

.nav-brand a span {
    color: #fdcb6e;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-menu a:hover {
    background: #f0f0f0;
    color: #2d3436;
}

.nav-menu a.admin-link {
    background: #2d3436;
    color: white;
    padding: 8px 22px;
}

.nav-menu a.admin-link:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.nav-menu a.cart-link {
    position: relative;
    background: #f8f9fa;
}

.nav-menu a.cart-link:hover {
    background: #f0f0f0;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #2d3436;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */
.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 32px;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #fdcb6e, #f39c12);
    border-radius: 2px;
}

.category-description {
    color: #636e72;
    margin-bottom: 25px;
    font-size: 16px;
}

/* ============================================
   MENU ITEMS GRID
   ============================================ */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.item-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f2f5;
    position: relative;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.menu-item:hover .item-image {
    transform: scale(1.05);
}

.item-content {
    padding: 22px 24px 24px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.item-header h3 {
    font-size: 19px;
    font-weight: 700;
    color: #2d3436;
    flex: 1;
    margin-left: 10px;
}

.item-price {
    font-size: 20px;
    font-weight: 800;
    color: #f39c12;
    white-space: nowrap;
}

.item-description {
    color: #636e72;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.item-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge.vegetarian {
    background: #d4edda;
    color: #155724;
}

.badge.spicy {
    background: #ffeaa7;
    color: #6c5200;
}

.badge.time {
    background: #dfe6e9;
    color: #2d3436;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.btn-add-cart:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}

.btn-add-cart:active {
    transform: scale(0.98);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #2d3436;
    color: #b2bec3;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer-links a,
.footer-social a {
    display: block;
    color: #b2bec3;
    margin-bottom: 8px;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: white;
}

.whatsapp-link {
    display: inline-block !important;
    background: #25D366;
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.whatsapp-link:hover {
    background: #1da851;
    color: white !important;
}

.footer-bottom {
    border-top: 1px solid #4a4a4a;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 15px 0;
        gap: 8px;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .item-image-wrapper {
        height: 180px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.block { display: block; }

.rtl { direction: rtl; }
.ltr { direction: ltr; }


/* ============================================
   NAVBAR - MODERN STYLES
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.navbar {
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 22px;
    font-weight: 800;
    color: #2d3436;
    letter-spacing: -0.5px;
}

.nav-brand a span {
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu a {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    font-size: 14px;
    position: relative;
}

.nav-menu a:hover {
    background: #f0f0f0;
    color: #2d3436;
}

.nav-menu a.admin-link {
    background: #2d3436;
    color: white;
    padding: 8px 22px;
}

.nav-menu a.admin-link:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-toggle-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 22px;
    color: #2d3436;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-toggle-btn:hover {
    background: #f0f0f0;
}

.cart-toggle-btn .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #2d3436;
    border-radius: 3px;
    transition: all 0.3s;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: white;
    z-index: 9999;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', sans-serif;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f2f5;
    background: #fafafa;
}

.cart-drawer-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #2d3436;
    margin: 0;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s;
    padding: 4px 8px;
    border-radius: 8px;
}

.cart-drawer-close:hover {
    background: #f0f0f0;
    color: #2d3436;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-drawer-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-drawer-empty .empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 15px;
}

.cart-drawer-empty p {
    font-size: 16px;
}

.cart-drawer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.cart-drawer-item:last-child {
    border-bottom: none;
}

.drawer-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.drawer-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.drawer-item-details {
    display: flex;
    flex-direction: column;
}

.drawer-item-name {
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
}

.drawer-item-price {
    color: #636e72;
    font-size: 13px;
}

.drawer-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-item-qty {
    color: #636e72;
    font-weight: 600;
    font-size: 14px;
}

.drawer-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

.drawer-item-remove:hover {
    background: #fde8e8;
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid #f0f2f5;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
}

.drawer-total-amount {
    color: #f39c12;
    font-size: 20px;
}

.cart-drawer-actions {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    flex-direction: column;
}

.drawer-btn {
    display: block;
    padding: 14px 24px;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.drawer-btn-view {
    background: #f0f2f5;
    color: #2d3436;
}

.drawer-btn-view:hover {
    background: #e9ecef;
}

.drawer-btn-checkout {
    background: #2d3436;
    color: white;
}

.drawer-btn-checkout:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        gap: 5px;
        border-top: 1px solid #f0f2f5;
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }
    
    .nav-menu a.admin-link {
        margin-top: 5px;
    }
    
    .cart-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .cart-drawer.open {
        right: 0;
    }
    
    .cart-drawer-header {
        padding: 16px 20px;
    }
    
    .cart-drawer-body {
        padding: 16px 20px;
    }
    
    .cart-toggle-btn {
        font-size: 20px;
        padding: 6px 10px;
    }
    
    .nav-brand a {
        font-size: 18px;
    }
}

/* Scrollbar styling */
.cart-drawer-body::-webkit-scrollbar {
    width: 4px;
}

.cart-drawer-body::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 2px;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.cart-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}