/*
 * Hero Slider — Front-end styles
 * @package Hero_Slider
 */

/* ==========================================================================
   Container
   ========================================================================== */

.hero-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #1a1a2e;
}

/* Height variants */
.hero-slider-height-auto .hero-slide {
    min-height: 60vh;
}

.hero-slider-height-full .hero-slide {
    min-height: 100vh;
}

.hero-slider-height-custom .hero-slide {
    min-height: 60vh;
}

.hero-slider-height-auto .hero-slider-track {
    min-height: 60vh;
}

.hero-slider-height-full .hero-slider-track {
    min-height: 100vh;
}

.hero-slider-height-custom .hero-slider-track {
    min-height: 60vh;
}

/* ==========================================================================
   Track & Slides
   ========================================================================== */

.hero-slider-track {
    position: relative;
    width: 100%;
    min-height: 60vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide:not(.active) {
    pointer-events: none;
}

/* Slide transition mode */
.hero-slider-transition-slide .hero-slider-track {
    display: flex;
    transition: transform 0.8s ease;
}

.hero-slider-transition-slide .hero-slide {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-slider-transition-slide .hero-slide:not(.active) {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Overlays
   ========================================================================== */

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.overlay-none {
    background: transparent;
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.5);
}

.overlay-gradient {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
}

/* ==========================================================================
   Content
   ========================================================================== */

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 80px 72px;
    color: #fff;
    box-sizing: border-box;
}

.hero-slide-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-slide-subheading {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 640px;
    margin: 0 0 32px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hero-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-btn-primary {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.hero-btn-primary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: #1a1a2e;
}

.hero-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* ==========================================================================
   Arrows
   ========================================================================== */

.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 300;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1;
    padding: 0;
}

.hero-slider-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.hero-slider-arrow:active {
    transform: translateY(-50%) scale(0.96);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

/* ==========================================================================
   Dots
   ========================================================================== */

.hero-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-slider-dots button:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero-slider-dots button.active {
    background: #fff;
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.hero-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 15;
}

.hero-slider-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .hero-slide-content {
        padding: 60px 40px;
        text-align: center;
    }

    .hero-slide-subheading {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-slide-buttons {
        justify-content: center;
    }

    .hero-slider-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }

    .hero-slider-prev {
        left: 10px;
    }

    .hero-slider-next {
        right: 10px;
    }

    .hero-slider-dots {
        bottom: 16px;
        gap: 8px;
    }

    .hero-slider-dots button {
        width: 10px;
        height: 10px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }

    .overlay-gradient {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    }
}

@media (max-width: 480px) {
    .hero-slide-content {
        padding: 48px 16px;
    }

    .hero-slide-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btn {
        text-align: center;
    }

    .hero-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .hero-slider-prev {
        left: 8px;
    }

    .hero-slider-next {
        right: 8px;
    }
}

/* ==========================================================================
   Accessibility — Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide-overlay,
    .hero-btn,
    .hero-slider-arrow,
    .hero-slider-dots button,
    .hero-slider-progress-bar {
        transition: none !important;
    }

    .hero-slider-transition-slide .hero-slider-track {
        transition: none !important;
    }
}
