/* ===================================
   SWIPER CUSTOM STYLES
   جميع الأنماط المتعلقة بـ Swiper
   =================================== */

/* ===================================
   HERO SWIPER STYLES
   =================================== */

/* Hero Swiper Container */
.hero-swiper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}

.hero-swiper .swiper-wrapper {
    height: 100%;
    width: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Let Swiper handle slide transitions naturally */
.hero-swiper .swiper-slide {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-swiper .swiper-slide-active {
    z-index: 2;
}

/* Hero Slide Content */
.hero-slide-first {
    background-image: url('/assets/img/Slider/Leonardo_Phoenix_10_Ultramodern_industrial_warehouse_with_shin_3.webp');
}

.hero-slide-second {
    background-image: url('/assets/img/Slider/bedkatrin_A_white_shipping_container_with_navy_blue_trim_is_bei_e203bf00-f49c-401d-803a-55728f7c9afc66ebc6b7d5c16.webp');
}

.hero-slide-third {
    background-image: url('/assets/img/Slider/awning-vs-pergolas-blog.webp');
}

.hero-slide-fourth {
    background-image: url('/assets/img/Slider/3822f735-98ed-4f45-8b04-779c2d7b0b1e.webp');
}

/* Slide Overlay */
.swiper-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* ===================================
   SWIPER NAVIGATION
   =================================== */

/* Pagination */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.2);
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    z-index: 21;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next {
    right: 20px;
}

.swiper-button-prev {
    left: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

/* Desktop */
@media (min-width: 992px) {
    .hero-swiper {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-swiper {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-swiper {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next {
        right: 10px;
    }
    
    .swiper-button-prev {
        left: 10px;
    }
}

/* ===================================
   FALLBACK STYLES
   =================================== */

/* إخفاء الأسهم والنقاط إذا لم يتم تهيئة Swiper */
.hero-swiper:not(.swiper-initialized) .swiper-pagination,
.hero-swiper:not(.swiper-initialized) .swiper-button-next,
.hero-swiper:not(.swiper-initialized) .swiper-button-prev {
    display: none;
}

/* عرض الشريحة الأولى فقط إذا لم يتم تهيئة Swiper */
.hero-swiper:not(.swiper-initialized) .swiper-slide {
    display: none;
}

.hero-swiper:not(.swiper-initialized) .swiper-slide:first-child {
    display: flex;
}

/* ===================================
   ANIMATIONS
   =================================== */

/* Slide Transition Animation */
.swiper-slide {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide-prev,
.swiper-slide-next {
    opacity: 0.7;
    transform: scale(0.95);
}

/* Content Animation */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   LOADING STATES
   =================================== */

/* Loading State */
.hero-swiper.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus States */
.swiper-button-next:focus,
.swiper-button-prev:focus,
.swiper-pagination-bullet:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Screen Reader Support */
.swiper-button-next::before {
    content: 'التالي';
    position: absolute;
    left: -9999px;
}

.swiper-button-prev::before {
    content: 'السابق';
    position: absolute;
    left: -9999px;
} 