/* ==========================================================================
   1. إخفاء شريط البحث وإلغاء مساحته الفارغة نهائياً
   ========================================================================== */
.header-search, 
.top-navbar,
.search-bar, 
.salla-search, 
[data-search], 
.main-header .search-wrapper,
.header-search-icon,
.mobile-search,
.site-header__search,
.search-container {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* ==========================================================================
   2. تغيير لون الفوتر إلى الرمادي الغامق الفخم
   ========================================================================== */

/* ==========================================================================
   3. تصميم وتنسيق الشاشة الافتتاحية (Splash Screen)
   ========================================================================== */
#custom-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #8e78aa 0%, #7a6694 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    will-change: opacity;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

/* تأثير اختفاء الشاشة عند الانتهاء أو التخطي */
#custom-splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* زر التخطي (أعلى اليمين) */
#custom-splash-skip {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
}

#custom-splash-skip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#custom-splash-skip span {
    font-size: 14px;
    display: inline-block;
    transition: transform 0.3s ease;
}

#custom-splash-skip:hover span {
    transform: translateX(-3px);
}

/* غلاف الشعار والحلقة المضيئة */
.splash-logo-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: splashZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* الحلقة المضيئة خلف الشعار */
.splash-glow-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: splashSpin 3.5s linear infinite;
    filter: blur(15px);
    will-change: transform;
}

/* تنسيق وحركة الشعار */
#custom-splash-logo {
    max-width: 180px;
    width: 130px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: zoomPulse 2s ease-in-out infinite alternate 1s;
    will-change: transform, filter;
}

/* التحريكات (Animations) */
@keyframes splashZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes zoomPulse {
    0% {
        transform: scale(0.95);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9));
    }
}

@keyframes splashSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}