/* ==============================================
   hero-editorial.css - Full-bleed editorial hero with slider
   ============================================== */

/* --- Base hero container --- */
.hero-editorial {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 85vh;
    min-height: 520px;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- Slide images --- */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.hero-slide--active {
    opacity: 1;
    transform: scale(1);
}

/* Single-image fallback (no slider) */
.hero-editorial-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* --- Overlay: multi-layer gradient for depth --- */
.hero-editorial-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            hsla(0, 0%, 0%, 0.1) 0%,
            hsla(0, 0%, 0%, 0.3) 40%,
            hsla(0, 0%, 0%, 0.65) 100%),
        linear-gradient(135deg,
            hsla(340, 80%, 30%, 0.15) 0%,
            transparent 50%);
}

/* --- Content container --- */
.hero-editorial-inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 680px;
    padding: 2rem 1.5rem 3rem;
    animation: heroFadeUp 0.8s ease-out both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Tag badge --- */
.hero-editorial-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: hsla(0, 0%, 100%, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid hsla(0, 0%, 100%, 0.18);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
    animation: heroFadeUp 0.8s 0.15s ease-out both;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff3e6c;
    animation: heroPulse 2s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

/* --- Title --- */
.hero-editorial-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
    animation: heroFadeUp 0.8s 0.25s ease-out both;
}

.hero-editorial-title em {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.hero-editorial-title em::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 12px;
    background: var(--color-primary, #ff3e6c);
    opacity: 0.35;
    border-radius: 4px;
    z-index: -1;
}

/* --- Description --- */
.hero-editorial-desc {
    font-size: 1.0625rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    color: #fff;
    animation: heroFadeUp 0.8s 0.35s ease-out both;
}

/* --- Action buttons --- */
.hero-editorial-actions {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeUp 0.8s 0.45s ease-out both;
}

.hero-editorial-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    color: #fff;
    background: var(--color-primary, #ff3e6c);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px hsla(340, 80%, 50%, 0.35);
}

.hero-editorial-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px hsla(340, 80%, 50%, 0.45);
}

.hero-editorial-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    color: #fff;
    background: hsla(0, 0%, 100%, 0.1);
    border: 1.5px solid hsla(0, 0%, 100%, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-editorial-cta-outline:hover {
    background: hsla(0, 0%, 100%, 0.2);
    border-color: hsla(0, 0%, 100%, 0.5);
    transform: translateY(-2px);
}

/* --- Trust badges --- */
.hero-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    animation: heroFadeUp 0.8s 0.55s ease-out both;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: hsla(0, 0%, 100%, 0.7);
    white-space: nowrap;
}

.hero-trust-item svg {
    width: 14px;
    height: 14px;
}

.hero-trust-divider {
    width: 1px;
    height: 12px;
    background: hsla(0, 0%, 100%, 0.2);
}

/* --- Slide dots --- */
.hero-slide-dots {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: hsla(0, 0%, 100%, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-dot--active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}

.hero-dot:hover:not(.hero-dot--active) {
    background: hsla(0, 0%, 100%, 0.6);
}

/* --- Scroll indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-scroll-line {
    display: block;
    width: 1px;
    height: 20px;
    background: hsla(0, 0%, 100%, 0.4);
    animation: heroScrollPulse 2s ease-in-out infinite;
}

@keyframes heroScrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* --- No-image fallback (gradient background) --- */
.hero-editorial--no-image {
    background: linear-gradient(135deg, hsl(340, 20%, 95%) 0%, hsl(30, 25%, 92%) 50%, hsl(340, 15%, 90%) 100%);
}

.hero-editorial--no-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, hsla(340, 60%, 60%, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, hsla(35, 40%, 70%, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, hsla(340, 50%, 65%, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.hero-editorial--no-image .hero-editorial-overlay {
    display: none;
}

.hero-editorial--no-image .hero-editorial-inner {
    color: hsl(0, 0%, 12%);
}

.hero-editorial--no-image .hero-editorial-tag {
    background: hsla(340, 60%, 50%, 0.08);
    border: 1px solid hsla(340, 60%, 50%, 0.15);
    color: hsl(340, 50%, 40%);
    backdrop-filter: none;
}

.hero-editorial--no-image .hero-tag-dot {
    background: var(--color-primary, #ff3e6c);
}

.hero-editorial--no-image .hero-editorial-title {
    color: hsl(0, 0%, 12%);
}

.hero-editorial--no-image .hero-editorial-title em::after {
    opacity: 0.2;
}

.hero-editorial--no-image .hero-editorial-desc {
    color: hsl(0, 0%, 40%);
    opacity: 1;
}

.hero-editorial--no-image .hero-editorial-cta {
    box-shadow: 0 4px 20px hsla(340, 80%, 50%, 0.25);
}

.hero-editorial--no-image .hero-editorial-cta-outline {
    background: hsla(0, 0%, 100%, 0.8);
    color: hsl(0, 0%, 20%);
    border: 1px solid var(--color-border, #ddd);
    backdrop-filter: blur(4px);
}

.hero-editorial--no-image .hero-editorial-cta-outline:hover {
    background: #fff;
    border-color: var(--color-primary, #ff3e6c);
    color: var(--color-primary, #ff3e6c);
}

.hero-editorial--no-image .hero-trust-item {
    color: hsl(0, 0%, 50%);
}

.hero-editorial--no-image .hero-trust-divider {
    background: hsl(0, 0%, 80%);
}

.hero-editorial--no-image .hero-dot {
    background: hsla(0, 0%, 0%, 0.15);
}

.hero-editorial--no-image .hero-dot--active {
    background: var(--color-primary, #ff3e6c);
}

.hero-editorial--no-image .hero-scroll-line {
    background: hsla(0, 0%, 0%, 0.25);
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
    .hero-editorial {
        height: 75vh;
        min-height: 440px;
        max-height: 600px;
    }

    .hero-editorial-inner {
        padding: 1.5rem 1rem 2.5rem;
    }

    .hero-editorial-tag {
        font-size: 0.6875rem;
        padding: 0.375rem 1rem;
        margin-bottom: 1rem;
    }

    .hero-editorial-title {
        font-size: clamp(1.5rem, 7vw, 2.25rem);
    }

    .hero-editorial-desc {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .hero-editorial-desc br {
        display: none;
    }

    .hero-editorial-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.625rem;
    }

    .hero-editorial-cta,
    .hero-editorial-cta-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-trust {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .hero-trust-divider {
        display: none;
    }

    .hero-trust-item {
        font-size: 0.7rem;
    }

    .hero-slide-dots {
        bottom: 3rem;
    }
}

@media (max-width: 360px) {
    .hero-editorial {
        min-height: 380px;
    }

    .hero-editorial-title {
        font-size: 1.375rem;
    }
}

/* --- Dark mode overrides --- */
[data-theme="dark"] .hero-editorial-overlay {
    background:
        linear-gradient(180deg,
            hsla(0, 0%, 0%, 0.2) 0%,
            hsla(0, 0%, 0%, 0.45) 40%,
            hsla(0, 0%, 0%, 0.75) 100%),
        linear-gradient(135deg,
            hsla(340, 80%, 20%, 0.15) 0%,
            transparent 50%);
}

[data-theme="dark"] .hero-editorial--no-image {
    background: linear-gradient(135deg, hsl(0, 0%, 8%) 0%, hsl(340, 10%, 12%) 50%, hsl(0, 0%, 10%) 100%);
}

[data-theme="dark"] .hero-editorial--no-image::before {
    background:
        radial-gradient(ellipse at 20% 50%, hsla(340, 60%, 40%, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, hsla(35, 40%, 50%, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, hsla(340, 50%, 45%, 0.08) 0%, transparent 50%);
}

[data-theme="dark"] .hero-editorial--no-image .hero-editorial-inner {
    color: hsl(0, 0%, 90%);
}

[data-theme="dark"] .hero-editorial--no-image .hero-editorial-tag {
    background: hsla(0, 0%, 100%, 0.1);
    border-color: hsla(0, 0%, 100%, 0.15);
    color: hsla(0, 0%, 100%, 0.75);
}

[data-theme="dark"] .hero-editorial--no-image .hero-editorial-title {
    color: hsl(0, 0%, 92%);
}

[data-theme="dark"] .hero-editorial--no-image .hero-editorial-desc {
    color: hsl(0, 0%, 60%);
}

[data-theme="dark"] .hero-editorial--no-image .hero-editorial-cta-outline {
    background: hsla(0, 0%, 100%, 0.1);
    color: hsl(0, 0%, 80%);
    border-color: hsla(0, 0%, 100%, 0.2);
}

[data-theme="dark"] .hero-editorial--no-image .hero-editorial-cta-outline:hover {
    background: hsla(0, 0%, 100%, 0.15);
    color: var(--color-primary, #ff3e6c);
    border-color: var(--color-primary, #ff3e6c);
}

[data-theme="dark"] .hero-editorial--no-image .hero-trust-item {
    color: hsl(0, 0%, 55%);
}

[data-theme="dark"] .hero-editorial--no-image .hero-trust-divider {
    background: hsla(0, 0%, 100%, 0.12);
}

[data-theme="dark"] .hero-editorial--no-image .hero-dot {
    background: hsla(0, 0%, 100%, 0.2);
}

[data-theme="dark"] .hero-editorial--no-image .hero-dot--active {
    background: var(--color-primary, #ff3e6c);
}

[data-theme="dark"] .hero-editorial--no-image .hero-scroll-line {
    background: hsla(0, 0%, 100%, 0.2);
}
