/* common.css - الأنماط المشتركة لجميع الصفحات - نسخة مصححة */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(145deg, #0A0A0A 0%, #0D1117 100%);
    overflow-x: hidden;
    color: #E5E7EB;
}

/* ========================================
   لوحة الألوان الرئيسية
   ======================================== */
:root {
    --primary-gold: #F5A623;
    --primary-gold-dark: #D4A017;
    --primary-amber: #BF6F00;
    --primary-copper: #C45A2E;
    --primary-dark: #0A0A0A;
    --glass-bg: rgba(10, 15, 20, 0.85);
    --glass-border: rgba(245, 166, 35, 0.25);
}

/* ========================================
   شاشة التحميل
   ======================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #0A0A0A 0%, #1A1008 50%, #0A0A0A 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
    overflow: hidden;
}

.oil-droplet-splash {
    position: absolute;
    background: radial-gradient(circle, rgba(245,166,35,0.25) 0%, rgba(212,160,23,0.08) 70%, transparent 100%);
    border-radius: 60% 40% 50% 50% / 45% 50% 50% 55%;
    animation: floatOilSplash 8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes floatOilSplash {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-20vh) rotate(360deg) scale(1);
        opacity: 0;
    }
}

.splash-logo {
    text-align: center;
    animation: gentlePulse 2s ease-in-out infinite;
    z-index: 10;
}

    .splash-logo i {
        font-size: 90px;
        background: linear-gradient(135deg, #F5A623, #BF6F00, #C45A2E);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        filter: drop-shadow(0 0 25px rgba(245,166,35,0.5));
    }

    .splash-logo h1 {
        font-size: 2.3rem;
        background: linear-gradient(135deg, #F5A623, #E8B86B);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        letter-spacing: 3px;
        margin-top: 1rem;
    }

    .splash-logo p {
        color: rgba(245,166,35,0.9);
        margin-top: 0.5rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }

.splash-spinner {
    width: 55px;
    height: 55px;
    border: 2px solid rgba(245,166,35,0.2);
    border-top: 2px solid #F5A623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 2rem;
    box-shadow: 0 0 20px rgba(245,166,35,0.3);
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(245,166,35,0.3);
    }

    50% {
        transform: scale(1.02);
        text-shadow: 0 0 30px rgba(245,166,35,0.6);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   زر العودة للأعلى
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #F5A623, #BF6F00);
    color: #0A0A0A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(245,166,35,0.4);
    border: none;
}

    .back-to-top i {
        font-size: 20px;
        color: #0A0A0A;
    }

    .back-to-top:hover {
        transform: scale(1.1) translateY(-3px);
        box-shadow: 0 8px 30px rgba(245,166,35,0.6);
    }

/* ========================================
   تأثيرات الزجاج
   ======================================== */
.glass-card {
    background: rgba(15, 20, 25, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 24px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .glass-card:hover {
        border-color: rgba(245, 166, 35, 0.5);
        box-shadow: 0 20px 40px -15px rgba(245, 166, 35, 0.2);
        transform: translateY(-5px);
    }

/* ========================================
   أزرار ذهبية
   ======================================== */
.btn-gold {
    background: linear-gradient(135deg, #F5A623, #D4A017, #BF6F00);
    color: #0A0A0A !important;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
}

    .btn-gold::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.5s;
    }

    .btn-gold:hover::before {
        left: 100%;
    }

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(245,166,35,0.5);
        color: #0A0A0A !important;
    }

/* ========================================
   نصوص ذهبية متدرجة
   ======================================== */
.gold-text {
    background: linear-gradient(135deg, #F5A623, #D4A017, #E8B86B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-gold {
    color: #F5A623 !important;
}

/* ========================================
   خلفيات الأقسام
   ======================================== */
.section-dark {
    background: linear-gradient(180deg, #0D1117 0%, #080B0E 100%);
}

.section-darker {
    background: #06090C;
}

/* ========================================
   تأثير التمرير البطيء (Parallax)
   ======================================== */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 40%, rgba(245,166,35,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ========================================
   قطرات زيت عائمة
   ======================================== */
.floating-oil {
    position: absolute;
    background: radial-gradient(ellipse, rgba(245,166,35,0.2), rgba(212,160,23,0.05));
    border-radius: 70% 30% 60% 40% / 40% 60% 40% 60%;
    animation: floatOilRandom 15s infinite alternate;
    pointer-events: none;
}

@keyframes floatOilRandom {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.15;
    }

    100% {
        transform: translate(40px, -60px) rotate(35deg) scale(1.1);
        opacity: 0.4;
    }
}

/* ========================================
   الأسئلة الشائعة
   ======================================== */
.faq-question {
    cursor: pointer;
    transition: all 0.2s;
    color: #FFFFFF !important;
}

    .faq-question:hover {
        background: rgba(245, 166, 35, 0.08);
        color: #F5A623 !important;
    }

.faq-answer {
    display: none;
    animation: fadeSlideUp 0.3s ease;
    color: #9CA3AF !important;
}

    .faq-answer.show {
        display: block;
    }

    .faq-answer p {
        color: #9CA3AF !important;
    }

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   تنسيق النصوص العامة
   ======================================== */
.text-white {
    color: #FFFFFF !important;
}

.text-gray-300 {
    color: #D1D5DB !important;
}

.text-gray-400 {
    color: #9CA3AF !important;
}

.text-gray-500 {
    color: #6B7280 !important;
}

/* ========================================
   روابط الهيدر
   ======================================== */
nav a {
    color: #D1D5DB;
    transition: color 0.3s;
}

    nav a:hover {
        color: #F5A623;
    }

/* ========================================
   تنسيق شريط التمرير
   ======================================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #F5A623;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #D4A017;
    }

/* ========================================
   تنسيق الحقول
   ======================================== */
input, textarea, select {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(245, 166, 35, 0.2) !important;
    color: #FFFFFF !important;
}

    input:focus, textarea:focus, select:focus {
        border-color: #F5A623 !important;
        outline: none !important;
    }

    input::placeholder, textarea::placeholder {
        color: #6B7280 !important;
    }

/* ========================================
   تنسيق القائمة الموبايل
   ======================================== */
.mobile-nav-link {
    color: #D1D5DB !important;
}

    .mobile-nav-link:hover {
        color: #F5A623 !important;
        background: rgba(245, 166, 35, 0.1);
    }

/* ========================================
   تنسيق بطاقات المنتجات
   ======================================== */
.product-card h3 {
    color: #FFFFFF !important;
}

.product-card p {
    color: #9CA3AF !important;
}

/* ========================================
   تنسيق بطاقات المكونات
   ======================================== */
.ingredient-card h3 {
    color: #FFFFFF !important;
}

.ingredient-card p {
    color: #9CA3AF !important;
}

/* ========================================
   تنسيق الفوتر
   ======================================== */
footer p {
    color: #9CA3AF !important;
}

/* ========================================
   تحسينات الموبايل
   ======================================== */
@media (max-width: 768px) {
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }

        .back-to-top i {
            font-size: 16px;
        }

    .glass-card {
        backdrop-filter: blur(8px);
    }

    .splash-logo i {
        font-size: 65px;
    }

    .splash-logo h1 {
        font-size: 1.6rem;
    }
}

/* ========================================
   إصلاحات إضافية
   ======================================== */
button, a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-x-hidden {
    overflow-x: hidden !important;
}

/* تنسيق الروابط الذهبية */
a.text-gold, .text-gold a {
    color: #F5A623 !important;
}

    a.text-gold:hover, .text-gold a:hover {
        color: #E8B86B !important;
    }

/* تنسيق الفوتر */
footer .gold-text {
    background: linear-gradient(135deg, #F5A623, #D4A017);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
