/**
 * Category Hero Block Styles
 *
 * Hero banner for spa category pages
 */

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

.lspa-category-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -80px;
    padding-top: 80px;
    overflow: hidden;
}

/* Overlay */
.lspa-category-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(1, 41, 81, 0.75) 0%,
        rgba(1, 41, 81, 0.5) 40%,
        rgba(1, 41, 81, 0.2) 100%
    );
    z-index: 1;
}

/* Placeholder notice for editor preview */
.lspa-category-hero__placeholder-notice {
    position: absolute;
    top: 50%;
    right: var(--lspa-space-xl);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--lspa-space-sm);
    padding: var(--lspa-space-lg);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--lspa-radius-lg);
    color: var(--lspa-gray-600);
    font-size: var(--lspa-text-sm);
    z-index: 10;
}

.lspa-category-hero__placeholder-notice .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

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

.lspa-category-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--lspa-container-xl);
    margin: 0 auto;
    padding: var(--lspa-space-4xl) var(--lspa-space-lg);
}

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

.lspa-category-hero__content {
    max-width: 800px;
}

/* Title */
.lspa-category-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--lspa-white);
    line-height: 1.1;
    margin-bottom: var(--lspa-space-xl);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Tags / Badges
   ========================================================================== */

.lspa-category-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lspa-space-sm);
    list-style: none;
    margin: 0 0 var(--lspa-space-xl) 0;
    padding: 0;
}

.lspa-category-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--lspa-space-sm);
    padding: var(--lspa-space-sm) var(--lspa-space-md);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--lspa-radius-full);
    color: var(--lspa-white);
    font-size: var(--lspa-text-sm);
    font-weight: 500;
    transition: all var(--lspa-transition-fast);
}

.lspa-category-hero__tag:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.lspa-category-hero__tag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--lspa-secondary);
    border-radius: var(--lspa-radius-full);
    color: var(--lspa-white);
    flex-shrink: 0;
}

.lspa-category-hero__tag-icon svg {
    width: 12px;
    height: 12px;
}

.lspa-category-hero__tag-text {
    white-space: nowrap;
}

/* ==========================================================================
   Description
   ========================================================================== */

.lspa-category-hero__description {
    font-size: var(--lspa-text-lg);
    color: var(--lspa-white);
    line-height: 1.7;
    margin-bottom: var(--lspa-space-xl);
    opacity: 0.95;
    max-width: 700px;
}

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

.lspa-category-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lspa-space-md);
}

/* Base Button */
.lspa-category-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--lspa-space-sm);
    padding: var(--lspa-space-md) var(--lspa-space-xl);
    font-size: var(--lspa-text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--lspa-radius-full);
    border: 2px solid transparent;
    transition: all var(--lspa-transition-fast);
    white-space: nowrap;
}

.lspa-category-hero__btn-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--lspa-transition-fast);
}

.lspa-category-hero__btn:hover .lspa-category-hero__btn-icon {
    transform: translateX(4px);
}

/* Primary Button (White/Light) */
.lspa-category-hero__btn--primary {
    background: var(--lspa-white);
    color: var(--lspa-primary);
    border-color: var(--lspa-white);
}

.lspa-category-hero__btn--primary:hover {
    background: transparent;
    color: var(--lspa-white);
    border-color: var(--lspa-white);
    transform: translateY(-2px);
}

/* Outline Button (Transparent) */
.lspa-category-hero__btn--outline {
    background: transparent;
    color: var(--lspa-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.lspa-category-hero__btn--outline:hover {
    background: var(--lspa-white);
    color: var(--lspa-primary);
    border-color: var(--lspa-white);
    transform: translateY(-2px);
}

/* Secondary Button (Colored) */
.lspa-category-hero__btn--secondary {
    background: var(--lspa-secondary);
    color: var(--lspa-white);
    border-color: var(--lspa-secondary);
}

.lspa-category-hero__btn--secondary:hover {
    background: var(--lspa-secondary-light);
    border-color: var(--lspa-secondary-light);
    transform: translateY(-2px);
}

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

@media (max-width: 1024px) {
    .lspa-category-hero {
        min-height: 75vh;
    }

    .lspa-category-hero__content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .lspa-category-hero {
        min-height: 70vh;
    }

    .lspa-category-hero__container {
        padding: var(--lspa-space-3xl) var(--lspa-space-lg);
    }

    .lspa-category-hero__title {
        font-size: 1.75rem;
        margin-bottom: var(--lspa-space-lg);
    }

    .lspa-category-hero__tags {
        gap: var(--lspa-space-xs);
        margin-bottom: var(--lspa-space-lg);
    }

    .lspa-category-hero__tag {
        padding: var(--lspa-space-xs) var(--lspa-space-sm);
        font-size: var(--lspa-text-xs);
    }

    .lspa-category-hero__tag-icon {
        width: 16px;
        height: 16px;
    }

    .lspa-category-hero__tag-icon svg {
        width: 10px;
        height: 10px;
    }

    .lspa-category-hero__description {
        font-size: var(--lspa-text-base);
        margin-bottom: var(--lspa-space-lg);
    }

    .lspa-category-hero__ctas {
        flex-direction: column;
    }

    .lspa-category-hero__btn {
        width: 100%;
        justify-content: center;
        padding: var(--lspa-space-md) var(--lspa-space-lg);
    }
}

/* ==========================================================================
   Full Width Alignment
   ========================================================================== */

.lspa-category-hero.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ==========================================================================
   Animation on Load
   ========================================================================== */

.lspa-category-hero__content > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.lspa-category-hero__title {
    animation-delay: 0.1s;
}

.lspa-category-hero__tags {
    animation-delay: 0.2s;
}

.lspa-category-hero__description {
    animation-delay: 0.3s;
}

.lspa-category-hero__ctas {
    animation-delay: 0.4s;
}

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

/* Disable animations in editor */
.editor-styles-wrapper .lspa-category-hero__content > * {
    animation: none;
    opacity: 1;
}
