/* ملف CSS مخصص لسلايدر البطل الرئيسي */

/* إعدادات عامة للسلايدر */
.hero-slider-container {
  width: 100%;
  height: 500px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 0;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: transform 0.3s ease;
}

.hero-slide-bg:hover {
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 600px;
  padding: 2rem;
  z-index: 10;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  animation: slideInDown 0.6s ease-out 0.2s both;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fbbf24;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: slideInRight 0.8s ease-out 0.6s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.9;
  }
}

.hero-cta-btn {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  animation: bounceIn 0.8s ease-out 1s both;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.hero-cta-btn i {
  font-size: 1rem;
}

/* أزرار التنقل */
.hero-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 20;
  pointer-events: none;
}

.hero-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-nav-btn:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-nav-btn i {
  font-size: 1.25rem;
  color: #374151;
}

/* مؤشرات الشريحة */
.hero-pagination {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .hero-slider-container {
    height: 400px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-cta-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .hero-navigation {
    padding: 0 1rem;
  }
  
  .hero-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .hero-nav-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-slider-container {
    height: 350px;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-description {
    font-size: 0.875rem;
  }
}

/* تحسينات للوضع المظلم */
@media (prefers-color-scheme: dark) {
  .hero-slide-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
  }
  
  .hero-nav-btn {
    background: rgba(255, 255, 255, 0.8);
  }
  
  .hero-nav-btn:hover {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* تصميم السلايدر مع الفلتر المدمج */
.hero-slider-with-filter {
  position: relative;
  width: 100%;
  height: 600px; /* زيادة الارتفاع لاستيعاب الفلتر */
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-slider-with-filter .hero-slider-container {
  height: 100%;
  margin-bottom: 0;
}

/* الفلتر المدمج في السلايدر */
.hero-filter-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
  padding: 2rem 0 1rem 0;
  backdrop-filter: blur(10px);
}

/* تعديل تصميم الفلتر داخل السلايدر */
.hero-filter-overlay form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
  .hero-slider-with-filter {
    height: 500px;
  }
  
  .hero-filter-overlay {
    padding: 1.5rem 0 0.5rem 0;
  }
  
  .hero-filter-overlay form {
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-slider-with-filter {
    height: 450px;
  }
  
  .hero-filter-overlay {
    padding: 1rem 0 0.5rem 0;
  }
  
  .hero-filter-overlay form {
    margin: 0 0.5rem;
  }
}