:root {
    --brand-yellow: #ffdd15;
    --brand-dark: #1a1a1a;
    --brand-light: #f8f9fa;
    --glass-bg: rgba(20, 20, 20, 0.95);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
    background-color: var(--brand-dark);
    color: var(--brand-light);
    overflow-x: hidden;
}

/* =========================================
   1. شاشة الترحيب (Index Page)
   ========================================= */

.welcome-screen {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.9)), 
                url('images/background.jpg') no-repeat center center;
    background-size: cover;
    /* استخدام min-height يضمن تغطية الشاشة حتى لو المحتوى قليل */
    min-height: 100vh;
    min-height: 100dvh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px;
}

.content-box {
    z-index: 2;
    width: 100%;
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

/* --- الحل القوي لحجم اللوغو --- */
.logo-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.main-logo {
    /* العرض 45% من عرض الشاشة، لكن يتوقف فوراً عند 220 بكسل */
    width: 45vw; 
    max-width: 220px; /* هذا هو الحد الأقصى الصارم */
    min-width: 140px; /* لضمان عدم صغره جداً في الجوالات القديمة */
    height: auto;
    
    /* الجماليات */
    filter: drop-shadow(0 0 20px rgba(255, 221, 21, 0.3));
    animation: floatLogo 4s ease-in-out infinite;
}

.brand-title {
    color: var(--brand-yellow);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.6);
}

.brand-slogan {
    color: #e0e0e0;
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-top: 5px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* زر الدخول */
.enter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--brand-yellow);
    color: #000;
    font-weight: 800;
    padding: 15px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(255, 221, 21, 0.4);
    transition: all 0.3s ease;
    border: 2px solid var(--brand-yellow);
    animation: pulseBtn 2s infinite;
}

.enter-btn:hover {
    background-color: transparent;
    color: var(--brand-yellow);
    box-shadow: 0 0 40px rgba(255, 221, 21, 0.7);
}

/* فوتر شاشة الترحيب */
.welcome-footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 2;
}

/* =========================================
   2. صفحة المنيو (Menu Page)
   ========================================= */

.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-scroller {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding: 5px 20px;
    -webkit-overflow-scrolling: touch;
}

.nav-scroller::-webkit-scrollbar { height: 4px; }
.nav-scroller::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.nav-scroller::-webkit-scrollbar-thumb { background: var(--brand-yellow); border-radius: 10px; }
@media (max-width: 768px) { .nav-scroller::-webkit-scrollbar { display: none; } }

.nav-link {
    color: #e0e0e0;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--brand-yellow);
    color: #000;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 20px rgba(255, 221, 21, 0.4);
    transform: translateY(-2px);
}

.section-title {
    margin: 50px 0 25px;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--brand-yellow);
    padding-right: 15px;
    border-right: 5px solid var(--brand-yellow);
    text-shadow: 0 0 10px rgba(255, 221, 21, 0.1);
}

.menu-card {
    background-color: #222;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-yellow);
    box-shadow: 0 10px 30px rgba(255, 221, 21, 0.15);
}

.img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img { transform: scale(1.1); }

.price-badge-overlay {
    position: absolute;
    top: 15px; left: 15px;
    background-color: var(--brand-yellow);
    color: #000;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

.menu-card-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.menu-card-title {
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.menu-card-calories {
    color: #bbb;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Lightbox */
.lightbox-modal {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background-color: rgba(0, 0, 0, 0.97);
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.lightbox-content {
    max-width: 90%; max-height: 85vh;
    border-radius: 12px; border: 2px solid var(--brand-yellow);
    box-shadow: 0 0 50px rgba(255, 221, 21, 0.2);
}
.close-lightbox {
    position: absolute; top: 25px; right: 30px;
    color: var(--brand-yellow); font-size: 45px;
    cursor: pointer; line-height: 1; transition: transform 0.2s;
}
.close-lightbox:hover { transform: scale(1.2); color: #fff; }

/* الفوتر العام وتنسيق الأيقونات */
.footer {
    background-color: #000;
    padding: 3rem 0;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a {
    color: var(--brand-yellow);
    font-size: 2rem;
    margin: 0 15px;
    transition: transform 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px var(--brand-yellow);
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.contact-info i {
    color: var(--brand-yellow);
    margin-left: 10px;
}

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(255, 221, 21, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(255, 221, 21, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 221, 21, 0); }

    
/* --- إعدادات وضع شاشات العرض (TV Mode) --- */
html.tv-mode .ad-container,
html.tv-mode .adsbygoogle {
    display: none !important; /* إخفاء الإعلانات تماماً */
}

/* تحسينات إضافية للشاشات: تكبير الخط قليلاً وإخفاء الفوتر الطويل */
html.tv-mode .menu-card-title {
    font-size: 1.3rem; /* تكبير اسم الوجبة للقراءة من بعيد */
}

html.tv-mode .sticky-nav {
    display: none; /* (اختياري) يمكنك إخفاء الشريط العلوي إذا أردت عرض المنيو فقط */
}
}