/* ========================================
   ALASEMA Restaurant - Mobile First CSS
   تصميم متجاوب يبدأ من شاشات الهاتف
   ======================================== */

/* ========== المتغيرات ========== */
:root {
    --primary-red: #8B0000;
    --primary-dark: #5a0000;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --bg-light: #fef8f0;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --text-dark: #2d2a24;
    --text-gray: #666666;
    --text-light: #999999;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: 0.3s ease;
}

/* ========== الإعدادات الأساسية (Mobile First) ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* ========== شاشة التحميل ========== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    padding: 20px;
}

.splash-logo-container {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

.splash-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
    border: 2px solid var(--gold);
}

.splash-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-top: 12px;
    letter-spacing: 1px;
}

.splash-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.splash-text {
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--gold-dark);
}

.splash-spinner {
    width: 35px;
    height: 35px;
    margin: 15px auto 0;
    border: 3px solid rgba(139,0,0,0.1);
    border-top: 3px solid var(--primary-red);
    border-right: 3px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* ========== الهيدر (Mobile First) ========== */
header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}

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

.header-logo-img {
    height: 45px;
    width: auto;
    border-radius: 10px;
    border: 1.5px solid var(--gold);
    background: white;
    padding: 2px;
}

.logo-text h1 {
    color: var(--gold);
    font-size: 1.2rem;
    margin: 0;
}

.logo-text p {
    color: rgba(255,255,255,0.9);
    font-size: 0.65rem;
    margin: 0;
}

/* مفتاح اللغة */
.lang-switch {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all var(--transition);
}

.lang-btn.active {
    background: var(--gold);
    color: var(--primary-red);
}

.mobile-menu-btn {
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--gold);
}

/* القائمة (تظهر بشكل منسدل على الهاتف) */
nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    z-index: 999;
}

nav.show {
    max-height: 300px;
}

nav ul {
    list-style: none;
    padding: 15px 0;
}

nav ul li {
    text-align: center;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 20px;
    transition: all var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--gold);
    color: var(--primary-red);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    min-height: 70vh;
    background-image: url('../assets/images/hero-bg-new.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(139,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title .title-ar {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-title .title-en {
    font-size: 0.85rem;
    letter-spacing: 3px;
    display: block;
    margin-top: 8px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.hero-btn.primary {
    background: var(--gold);
    color: var(--primary-red);
}

.hero-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--gold);
}

.hero-btn:active {
    transform: scale(0.98);
}

/* ========== الأطباق المميزة ========== */
.featured-dishes,
.quick-features,
.menu-page,
.about-page,
.gallery-page,
.contact-page {
    padding: 50px 0;
}

.section-title,
.page-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title .title-ar,
.page-title .title-ar {
    font-size: 1.6rem;
    color: var(--primary-red);
    display: block;
}

.section-title .title-en,
.page-title .title-en {
    font-size: 0.75rem;
    color: var(--text-gray);
    letter-spacing: 2px;
    display: block;
    margin-top: 5px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 25px;
}

/* الأطباق */
.dishes-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dish-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.dish-card:active {
    transform: scale(0.98);
}

.dish-image {
    height: 180px;
    overflow: hidden;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-info {
    padding: 15px;
    text-align: center;
}

.dish-name-en {
    font-size: 0.9rem;
    color: var(--primary-red);
    font-weight: 700;
}

.dish-name-ar {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin: 5px 0;
}

.dish-desc {
    font-size: 0.7rem;
    color: var(--text-light);
    margin: 8px 0;
}

.dish-price {
    font-size: 1rem;
    font-weight: bold;
    color: var(--gold);
    background: var(--primary-red);
    display: inline-block;
    padding: 4px 18px;
    border-radius: 25px;
}

/* المميزات السريعة */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    background: var(--bg-white);
    padding: 20px 10px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.feature-item h3 {
    font-size: 0.8rem;
    color: var(--primary-red);
}

/* ========== صفحة المنيو ========== */
.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.call-btn {
    background: var(--gold);
    color: var(--primary-red);
}

.order-btn:active {
    transform: scale(0.98);
}

/* أقسام المنيو */
.category-block {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    padding: 20px 15px;
    box-shadow: var(--shadow-sm);
}

.category-title {
    font-size: 1.2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    transition: all var(--transition);
    border-right: 3px solid var(--primary-red);
    cursor: pointer;
}

.menu-item-card:active {
    background: var(--bg-white);
    transform: translateX(-3px);
}

.menu-item-info h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.menu-item-price {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-red);
    background: rgba(139,0,0,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.menu-note-display {
    background: #fff3cd;
    border-right: 3px solid var(--primary-red);
    padding: 12px;
    margin: 20px 0;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.8rem;
    color: var(--primary-red);
}

/* ========== صفحة عن المطعم ========== */
.about-story {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.story-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-content {
    padding: 20px;
}

.story-content h3 {
    color: var(--primary-red);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.story-content p {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.mission-card {
    background: var(--bg-white);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.mission-card i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.mission-card h3 {
    color: var(--primary-red);
    margin-bottom: 8px;
    font-size: 1rem;
}

.mission-card p {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    padding: 20px;
    text-align: center;
    border-radius: var(--radius-md);
    color: white;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 0.7rem;
}

/* ========== صفحة المعرض ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 12px;
    color: white;
}

.gallery-overlay h4 {
    font-size: 0.7rem;
}

.gallery-overlay p {
    font-size: 0.6rem;
    color: var(--gold);
}

/* نافذة المعرض */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gallery-modal-content {
    background: var(--bg-white);
    max-width: 400px;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: white;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content img {
    width: 100%;
}

.gallery-modal-info {
    padding: 20px;
    text-align: center;
}

.gallery-modal-info h3 {
    color: var(--primary-red);
    margin-bottom: 8px;
}

.gallery-modal-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gold);
    background: var(--primary-red);
    display: inline-block;
    padding: 5px 20px;
    border-radius: 25px;
    margin: 12px 0;
}

.gallery-order-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    margin-top: 12px;
    font-size: 0.85rem;
}

/* ========== صفحة الاتصال ========== */
.contact-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}

.contact-info-side {
    background: var(--bg-light);
    padding: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-detail-item h4 {
    font-size: 0.7rem;
    color: var(--text-gray);
}

.contact-detail-item p {
    font-size: 0.8rem;
    font-weight: bold;
}

.social-links-section {
    margin-top: 25px;
}

.social-links-section h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1rem;
}

.social-icons-large {
    display: flex;
    gap: 15px;
}

.social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition);
    text-decoration: none;
}

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

.social-circle:active {
    transform: scale(0.95);
}

.contact-form-side {
    padding: 25px;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    transition: border var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: var(--gold);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition);
}

.submit-btn:active {
    transform: scale(0.98);
}

.map-section {
    margin-top: 30px;
}

.map-section h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 1rem;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* ========== الفوتر ========== */
footer {
    background: var(--bg-dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 55px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.footer-logo h3 {
    color: var(--gold);
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--transition);
}

.social-icons a:active {
    background: var(--gold);
    color: var(--primary-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 0.7rem;
}

/* ========== شاشات أكبر (تابلت) ========== */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        position: static;
        max-height: none;
        background: transparent;
    }
    
    nav ul {
        display: flex;
        gap: 5px;
        padding: 0;
    }
    
    nav ul li a {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .hero-title .title-ar {
        font-size: 2.5rem;
    }
    
    .dishes-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .order-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .order-btn {
        padding: 12px 30px;
    }
    
    .items-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .mission-vision {
        flex-direction: row;
    }
    
    .mission-card {
        flex: 1;
    }
    
    .stats-section {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        flex-wrap: wrap;
    }
    
    .footer-links {
        margin: 0;
    }
}

/* ========== شاشات كبيرة (لابتوب) ========== */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .container {
        max-width: 960px;
    }
    
    .hero-title .title-ar {
        font-size: 3rem;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== شاشات كبيرة جداً ========== */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}