/* 1. الدارك مود والسكروول بار - هوية VOID الثابتة */
body, .s-page-wrap, main { background-color: #07070a !important; color: #e2e8f0 !important; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #07070a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #9d4edd, #3c096c); border-radius: 4px; }

@keyframes wave-colors {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 2. الزر الزجاجي (الحالة الطبيعية - زجاجي بامتياز) */
.s-button-element, 
.flex.flex-col.w-full.px-4.pb-8.-mt-8, 
.slide--cat-entry.relative,
button {
  background-image: linear-gradient(90deg, 
    rgba(199, 125, 255, 0.65), 
    rgba(123, 44, 191, 0.60), 
    rgba(60, 9, 108, 0.85)) !important;
  
  background-size: 200% 200% !important;
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important; 
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  
  transition: all 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important; 
  animation: wave-colors 10s ease-in-out infinite !important;
  position: relative;
  overflow: hidden !important; 
  z-index: 1;
}

/* --- اللمعة العريضة --- */
.s-button-element::before,
button::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: -150% !important; 
  width: 65% !important; 
  height: 100% !important;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%) !important;
  transform: skewX(-25deg) !important;
  mix-blend-mode: overlay !important;
  transition: left 0.4s ease-in !important; 
  z-index: 2 !important;
  pointer-events: none !important;
}

/* 3. تأثير "الذهب الخالص الصامد" (عند وضع الماوس) */
.s-button-element:hover, 
.flex.flex-col.w-full.px-4.pb-8.-mt-8:hover, 
.slide--cat-entry.relative:hover,
button:hover {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  transform: scale(1.04) !important; 
  
  /* --- السر هنا: ألوان صلبة 100% بدون أي شفافية (No Glass) --- */
  background-image: linear-gradient(90deg, #FFD700, #DAA520, #FFD700) !important;
  
  /* نلغي الفلتر الزجاجي في وضع الذهب عشان يبان صلب */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 165, 0, 0.6), 0 0 100px rgba(255, 140, 0, 0.4) !important;
  border-color: #FFD700 !important; 
  animation: wave-colors 6s ease-in-out infinite !important; /* تسريع الموجة لبريق الذهب */
}

/* حركة اللمعة وقت الدخول */
.s-button-element:hover::before,
button:hover::before {
  transition: left 0.6s ease-in-out !important; 
  left: 200% !important; 
}

/* 4. حماية النص والأيقونة - خط عريض وقوي جداً */
.s-button-element .s-button-text,
.s-button-element i,
button span,
button i {
  position: relative !important;
  z-index: 3 !important; 
  background: transparent !important;
  color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 700 !important; /* الخط العريض القوي */
  
  transition: text-shadow 0.3s ease-in-out !important;
}

/* الوهج الأبيض حول النص */
.s-button-element:hover .s-button-text,
.s-button-element:hover i,
button:hover span,
button:hover i {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(255, 255, 255, 0.5) !important;
}
/*هذا حق الوهج حق زر البحث هنا*/
/* 1. حاوية زر البحث (الدائرة الذهبية الصافية) */
.search-btn {
    display: flex !important;
    position: relative !important;
    width: 54px !important;
    height: 54px !important;
    background: #000 !important; /* خلفية سوداء عميقة لبروز الذهب */
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    overflow: hidden !important; 
    z-index: 1 !important;
    border: none !important;

    /* --- سر التدريج الأسطوري: يصعد وينزل بنعومة (0.7 ثانية) --- */
    transition: box-shadow 0.7s ease-in-out, transform 0.4s ease-in-out !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2) !important;
}

/* 2. الإطار الدوار (درجات الذهب فقط - بدون أسود أو بنفسجي) */
.search-btn::before {
    content: "" !important;
    position: absolute !important;
    width: 200% !important;
    height: 200% !important;
    /* تدرج ذهبي ملكي: ذهب فاتح -> ذهب وردي -> ذهب خالص */
    background: conic-gradient(
        #FFD700, 
        #FFF5B7, 
        #DAA520, 
        #F7EF8A, 
        #FFD700
    ) !important;
    animation: rotate-gold 3s linear infinite !important;
    z-index: -2 !important;
}

/* 3. قلب الزر (الذهب الزجاجي العميق) */
.search-btn::after {
    content: "" !important;
    position: absolute !important;
    inset: 3.5px !important; /* سماكة إطار الذهب */
    background: linear-gradient(135deg, #8B6508 0%, #B8860B 100%) !important;
    border-radius: 50% !important;
    z-index: -1 !important;
}

/* 4. أيقونة البحث (أبيض ناصع ثابت - وهج أبيض تدريجي) */
.search-btn i {
    color: #ffffff !important;
    font-size: 1.4rem !important;
    font-weight: 900 !important;
    z-index: 2 !important;
    /* تدريج وهج الأيقونة */
    transition: filter 0.7s ease-in-out !important;
}

/* --- حركات الذهب الأسطورية --- */

/* دوران الذهب بنعومة */
@keyframes rotate-gold {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 5. تأثير "الوهج المتصاعد" عند وضع الماوس (Hover) */
.search-btn:hover {
    transform: scale(1.12) !important;
    /* الوهج الذهبي يصعد بقوة ونعومة */
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.9), 0 0 60px rgba(218, 165, 32, 0.5) !important;
}

.search-btn:hover i {
    /* وهج أبيض ثلجي للأيقونة يتصاعد بالتدريج */
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1)) !important;
}

/* 6. عند إبعاد الماوس، يرجع الوهج يطفي بالتدريج بفضل الـ transition في السطر رقم 14 */