/* نـيـڤـانـا كافيه - MODERN SPECIALTY MENU CSS 
   Version: 6.6 (Animated Elite)
*/

:root {
    --bg-sukkari: #fdfaf0;
    --matte-black: #0d0d0d;
    --neon-lime: #ccff00;
    --soft-gray: #f4f4f2;
    --neon-glow: rgba(204, 255, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Almarai', sans-serif;
    background-color: var(--bg-sukkari);
    color: var(--matte-black);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* الخطوط الإضافية */
.font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif; }
.font-cairo { font-family: 'Cairo', sans-serif; }

/* تأثير قوام الورق الخلفي */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-light.png');
    opacity: 0.04;
    pointer-events: none;
    z-index: 999;
}

/* تحسين شريط التمرير */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-sukkari); }
::-webkit-scrollbar-thumb { background: var(--matte-black); border-radius: 10px; }

/* أنميشن الظهور التدريجي */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { animation: slideInUp 0.6s ease-out forwards; }

/* شريط الأقسام */
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-item {
    transition: var(--transition);
    background: white;
    white-space: nowrap;
    min-width: 110px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.cat-item.active {
    background: var(--matte-black);
    color: var(--neon-lime);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--neon-glow);
    border-color: var(--neon-lime);
}

/* ----------------------------------------------------
   قسم الأنميشن المخصص للأيقونات (MICRO-INTERACTIONS)
---------------------------------------------------- */

/* 1. تصاعد الدخان (Smoke Animation) */
@keyframes smokeRise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    20% { opacity: 0.7; }
    100% { transform: translateY(-10px) scaleX(1.5); opacity: 0; }
}
.smoke-container {
    position: absolute;
    top: -10px;
    display: flex;
    gap: 2px;
}
.smoke-line {
    width: 2px;
    height: 5px;
    background: var(--neon-lime);
    border-radius: 2px;
    animation: smokeRise 2s infinite ease-in-out;
}

/* 2. اشتعال اللهب (Flame Animation) */
@keyframes flameFlicker {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}
.active .flame-icon { animation: flameFlicker 1s infinite ease-in-out; }

/* 3. قطرات القهوة (Drip Animation) */
@keyframes dripDown {
    0% { transform: translateY(-8px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(2px); opacity: 0; }
}
.drip-drop {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 3px;
    background: var(--neon-lime);
    border-radius: 50%;
    animation: dripDown 1.5s infinite linear;
}

/* 4. حركة التقطيع (Slicing Animation) */
@keyframes utensilSlice {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}
.active .sandwich-icon { animation: utensilSlice 1.2s infinite ease-in-out; }

/* 5. بريق الحلويات (Sparkle Animation) */
@keyframes sparkleScale {
    0%, 100% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1); opacity: 1; }
}
.sparkle-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-lime);
    border-radius: 50%;
    animation: sparkleScale 1s infinite;
}

/* 6. الدوران (Spin Animation) */
@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.active .icon-spin { animation: iconSpin 8s linear infinite; }

/* 7. النبض الناعم (Pulse Animation) */
@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.active .baked-icon { animation: softPulse 2s infinite ease-in-out; }

/* كروت المنتجات */
.product-card {
    background: white;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}
.product-card:active { transform: scale(0.97); }

/* المودال والطبقات العائمة */
.modal-blur {
    backdrop-filter: blur(12px);
    background: rgba(0,0,0,0.8);
    transition: opacity 0.3s ease;
}
.modal-container {
    max-height: 90vh;
    border-radius: 35px 35px 0 0;
}

@media (min-width: 640px) {
    .modal-container {
        border-radius: 40px;
        max-height: 85vh;
    }
}

/* صناديق المدن */
.city-box {
    background: white;
    border: 2px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 15px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}
.city-box.active {
    background: var(--matte-black);
    border-color: var(--neon-lime);
    color: var(--neon-lime);
    box-shadow: 0 10px 20px -5px rgba(204, 255, 0, 0.2);
}

/* شريط قريباً */
.soon-strip {
    background: var(--neon-lime);
    color: black;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 0;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px 12px 0 0;
}

/* اخفاء اشرطة التمرير الافتراضية */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* تحسين حركة المودال */
.modal-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* لدعم متصفح سفاري وآيفون */
    background: rgba(0,0,0,0.7);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-container {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1); /* حركة احترافية ناعمة */
}

.modal-active .modal-container {
    transform: translateY(0);
}

.modal-active .modal-blur {
    opacity: 1;
}
