/* ==========================================================================
   Hero Slider
   ========================================================================== */

.hero-slider {
    position: relative;
    height: 90vh;
    min-height: 550px;
    max-height: 900px;
    overflow: hidden;
    background: linear-gradient(135deg, #2f0d68 0%, #5b1fa0 30%, #e60076 70%, #ff1a8c 100%);
}

/* No-image variant — playful gradient default */
.hero-slider--no-image {
    background: linear-gradient(135deg, #2f0d68 0%, #4a1590 25%, #e60076 55%, #ff4da6 80%, #fbcf38 100%);
    background-size: 200% 200%;
    animation: heroGradient 12s ease infinite;
}

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

/* Decorative floating unicorn icons */
.hero-slider__shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-unicorn {
    position: absolute;
    color: rgba(255, 255, 255, 0.07);
}

.hero-unicorn--1 {
    width: 350px;
    height: 350px;
    top: -40px;
    right: -30px;
    animation: unicornFloat 9s ease-in-out infinite;
    color: rgba(251, 207, 56, 0.1);
}

.hero-unicorn--2 {
    width: 200px;
    height: 200px;
    bottom: 60px;
    left: 5%;
    animation: unicornFloat 11s ease-in-out infinite reverse;
    color: rgba(255, 255, 255, 0.06);
    transform: scaleX(-1);
}

.hero-unicorn--3 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 20%;
    animation: unicornFloat 8s ease-in-out infinite;
    animation-delay: -3s;
    color: rgba(255, 255, 255, 0.05);
}

.hero-unicorn--4 {
    width: 80px;
    height: 80px;
    top: 55%;
    left: 12%;
    animation: unicornFloat 10s ease-in-out infinite;
    animation-delay: -5s;
    color: rgba(251, 207, 56, 0.08);
    transform: scaleX(-1);
}

.hero-unicorn--5 {
    width: 160px;
    height: 160px;
    bottom: 15%;
    right: 5%;
    animation: unicornFloat 12s ease-in-out infinite reverse;
    animation-delay: -2s;
    color: rgba(255, 255, 255, 0.04);
}

@keyframes unicornFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(4deg); }
    66% { transform: translateY(15px) rotate(-3deg); }
}

.hero-unicorn--2,
.hero-unicorn--4 {
    animation-name: unicornFloatFlipped;
}

@keyframes unicornFloatFlipped {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(0deg); }
    33% { transform: scaleX(-1) translateY(-20px) rotate(-4deg); }
    66% { transform: scaleX(-1) translateY(18px) rotate(3deg); }
}

/* Slider track & slides */
.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slider__slide--active {
    opacity: 1;
    visibility: visible;
}

/* Overlay only when there's a background image */
.hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 13, 104, 0.75) 0%, rgba(230, 0, 118, 0.5) 100%);
}

/* Content — centered, big & bold */
.hero-slider__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 90vh;
    min-height: 550px;
    max-height: 900px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.hero-slider__subtitle {
    font-family: var(--font-decorative);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-slider__slide--active .hero-slider__subtitle {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-slider__title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-slider__slide--active .hero-slider__title {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-slider__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-slider__slide--active .hero-slider__actions {
    animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero buttons — make them pop */
.hero-slider .btn--accent {
    font-size: 1.125rem;
    padding: 1.125rem 3rem;
    box-shadow: 0 4px 20px rgba(251, 207, 56, 0.4);
}

.hero-slider .btn--accent:hover {
    box-shadow: 0 6px 30px rgba(251, 207, 56, 0.6);
    transform: translateY(-3px);
}

/* Bottom wave transition */
.hero-slider__wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 5;
    line-height: 0;
}

.hero-slider__wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* Navigation arrows */
.hero-slider__prev,
.hero-slider__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-slider__prev:hover,
.hero-slider__next:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider__prev {
    left: 2rem;
}

.hero-slider__next {
    right: 2rem;
}

/* Dots */
.hero-slider__dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.hero-slider__dot--active,
.hero-slider__dot:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.4);
    box-shadow: 0 0 12px rgba(251, 207, 56, 0.5);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
