/* ========== 1. الإعدادات العامة والخطوط ========== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

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

body {
    font-family: 'Tajawal', sans-serif;
    background: #fef8f0;
    color: #2d2a24;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 2. الهيدر والشعار (Header & Logo) ========== */
header {
    background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-logo-img {
    height: 70px;
    width: auto;
    border-radius: 12px;
    border: 1.5px solid #FFD700;
    background: #fff;
    padding: 2px;
}

.logo-text-wrapper h1 {
    color: #FFD700;
    font-size: 1.6rem;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.logo-text-wrapper p {
    color: #f1c7b8;
    font-size: 0.8rem;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background: #FFD700;
    color: #8B0000;
}

/* ========== 3. قسم الـ Hero ========== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3)), 
                url('../assets/images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background: #FFD700;
    color: #8B0000;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #FFC107;
    transform: scale(1.05);
}

/* ========== 4. صفحة المنيو والأصناف ========== */
.menu-page {
    padding: 60px 0;
    min-height: 70vh;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #8B0000;
    margin-bottom: 15px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.category-block {
    margin-bottom: 50px;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 1.8rem;
    color: #8B0000;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #FFD700;
    display: inline-block;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.menu-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef8f0;
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s;
    border-right: 5px solid #8B0000;
    cursor: pointer; /* تم إضافة مؤشر اليد هنا */
}

.menu-item-card:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.menu-item-info h4 {
    font-size: 1.1rem;
    color: #2d2a24;
    margin-bottom: 5px;
}

.menu-item-info p {
    font-size: 0.85rem;
    color: #777;
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #8B0000;
    background: #fef1f1;
    padding: 8px 15px;
    border-radius: 10px;
    white-space: nowrap;
}

/* الملاحظة أسفل المنيو */
.menu-note-display {
    background-color: #fff3cd;
    border-right: 5px solid #8B0000;
    padding: 15px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    color: #8B0000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ========== 5. أزرار التواصل والحجز ========== */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.booking-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FFD700;
    color: #000 !important;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.booking-btn:hover, .call-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ========== 6. المميزات ========== */
.features {
    padding: 60px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #8B0000;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: #fef8f0;
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========== 7. الفوتر ========== */
footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px;
    border-top: 3px solid #8B0000;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.social-icon {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px; transition: all 0.3s ease;
    text-decoration: none;
}

.fb { background: #1877F2; }
.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.wa { background: #25D366; }

/* ========== 8. شاشة التحميل (Splash Screen) ========== */
.splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #f1c7b8;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}

.splash-logo-container {
    width: 100px; height: 100px;
    margin-bottom: 20px;
    animation: logoFadeIn 1.2s ease-out, splashPulse 1.5s ease-in-out infinite alternate;
}

.splash-logo-img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
}
.splash-text {
    animation: fadeIn 1s ease-in-out;
}

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

.splash-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(139, 0, 0, 0.1);
    border-top: 3px solid #8B0000;
    border-radius: 50%;
    margin: 20px auto 0;
    animation: spin 1s linear infinite;
}

.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-content.visible {
    opacity: 1;
}

/* ========== 9. الأنيميشن ========== */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes splashPulse { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes logoFadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }

/* ========== 10. استجابة للجوال (Media Queries) ========== */
@media (max-width: 768px) {
    header .container { flex-direction: column; text-align: center; }
    nav ul { gap: 15px; margin-top: 10px; }
    .hero { height: 60vh; background-position: 25% center; }
    .hero-content h2 { font-size: 1.8rem; }
    .page-title { font-size: 1.8rem; }
    .call-btn, .booking-btn { width: 100%; justify-content: center; }
    
    .category-title {
        background: linear-gradient(to left, #8B0000, #4a0000);
        color: white;
        padding: 10px 20px;
        border-radius: 50px;
        display: block;
        text-align: center;
        font-size: 1.2rem;
    }
}

/* ========== 11. إضافة نافذة عرض صور الطعام (Food Modal) ========== */
.food-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* يتم تغييره بواسطة JS */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.food-modal.active {
    opacity: 1;
}

.modal-body {
    background: white;
    padding: 20px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.food-modal.active .modal-body {
    transform: scale(1);
}

.modal-body img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-body h3 {
    color: #8B0000;
    font-size: 1.4rem;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #8B0000;
    font-weight: bold;
}