/* Hero Slider Styles */

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    z-index: 1;
    margin-top: 80px; /* Add margin to push content below header */
}

.swiper {
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative; /* Ensure proper stacking context */
}

/* No special styles needed for swiper-wrapper */

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-100), var(--accent-100));
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
}

.hero-slide-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../svg/wave-pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 20px var(--spacing-md);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    margin: 0 auto;
}

.hero-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.hero-slide-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.hero-slide-cta {
    display: inline-block;
}

/* Decoration elements */
.hero-slide-decoration {
    position: absolute;
    z-index: 1;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.hero-slide-decoration-1 {
    top: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-color: var(--accent-300);
    animation: float 6s ease-in-out infinite;
}

.hero-slide-decoration-2 {
    bottom: 15%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-color: var(--accent-200);
    animation: float 8s ease-in-out infinite 1s;
}

.hero-slide-decoration-3 {
    top: 60%;
    left: 15%;
    width: 40px;
    height: 40px;
    background-color: var(--accent-100);
    animation: float 5s ease-in-out infinite 0.5s;
}

/* Product-specific styles */
.hero-slide.main .hero-slide-bg {
    background: linear-gradient(135deg, #1E4F8D, #2a6fc9);
}

.hero-slide.beachflag .hero-slide-bg {
    background: linear-gradient(135deg, #1E4F8D, #3a7bd5);
}

.hero-slide.flag .hero-slide-bg {
    background: linear-gradient(135deg, #71c4ef, #4fa8d8);
}

.hero-slide.banner .hero-slide-bg {
    background: linear-gradient(135deg, #4a90e2, #6aa9e9);
}

.hero-slide.special .hero-slide-bg {
    background: linear-gradient(135deg, #FF7F50, #FF9F70);
}

.hero-slide.pillow .hero-slide-bg {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.hero-slide.frame .hero-slide-bg {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

/* Swiper pagination */
.swiper-pagination {
    position: relative;
    z-index: 20;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.swiper-pagination-bullet-active {
    background-color: white;
    width: 30px;
    border-radius: 6px;
    pointer-events: auto;
}

/* Media queries */
@media (min-width: 640px) {
    .hero-slide-title {
        font-size: 3rem;
    }

    .hero-slide-subtitle {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 600px;
        margin-top: 84px; /* Adjust margin for larger screens */
    }

    .hero-slide-title {
        font-size: 4rem;
    }

    .hero-slide-subtitle {
        font-size: 1.5rem;
    }
}
