/* Hero Slider Pro - Frontend Styles */

/* Google Font - Barlow */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

/* Reset & Base */
.hsp-hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--hsp-height, 100vh);
    overflow: hidden;
    background-color: #1a1a1a;
    font-family: 'Barlow', sans-serif;
}

.hsp-hero-slider *,
.hsp-hero-slider *::before,
.hsp-hero-slider *::after {
    box-sizing: border-box;
}

/* Slides Container */
.hsp-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.hsp-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 73%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

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

/* Background Image */
.hsp-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hsp-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.hsp-slide.hsp-active .hsp-slide-bg img {
    transform: scale(1.05);
}

/* Overlay */
.hsp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

/* Content */
.hsp-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 60px 80px;
    max-width: 800px;
}

/* Subtitle */
.hsp-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.hsp-slide.hsp-active .hsp-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hsp-subtitle-dot {
    width: 8px;
    height: 8px;
    background-color: #c9a962;
    border-radius: 50%;
}

/* Headline */
.hsp-headline {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.hsp-slide.hsp-active .hsp-headline {
    opacity: 1;
    transform: translateY(0);
}

/* Headline extension (subheadline inline) */
.hsp-headline-extension {
    display: inline-flex;
    align-items: center;
    margin-left: clamp(12px, 2vw, 24px);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.hsp-headline-extension-standalone {
    display: inline-block;
    margin-left: 0;
    margin-top: 10px;
}

/* CTA Button */
.hsp-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s, background-color 0.3s ease, border-color 0.3s ease;
}

.hsp-slide.hsp-active .hsp-cta-button {
    opacity: 1;
    transform: translateY(0);
}

.hsp-cta-button:hover {
    background-color: #ffffff;
    color: #1a1a1a;
    border-color: #ffffff;
}

/* Navigation */
.hsp-navigation {
    position: absolute;
    bottom: 40px;
    left: 80px;
    right: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

/* Progress Indicator */
.hsp-progress {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.hsp-current,
.hsp-total {
    min-width: 24px;
}

.hsp-progress-bar {
    width: 100px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hsp-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

/* Arrows */
.hsp-arrows {
    display: flex;
    gap: 10px;
}

.hsp-arrow {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hsp-arrow:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.hsp-arrow svg {
    width: 20px;
    height: 20px;
}

/* Side CTA */
.hsp-side-cta {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 20px 15px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    color: #1a1a1a;
    background-color: #c9a962;
    border-radius: 8px 0 0 8px;
    z-index: 10;
    transition: all 0.3s ease;
}

.hsp-side-cta:hover {
    padding-right: 20px;
    background-color: #b8983f;
}

/* Responsive */
@media (max-width: 1024px) {
    .hsp-slide-content {
        padding: 40px 50px;
        max-width: 600px;
    }
    
    .hsp-navigation {
        left: 50px;
        right: 50px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hsp-slide-content {
        padding: 30px;
        max-width: 100%;
        justify-content: flex-end;
        padding-bottom: 120px;
    }
    
    .hsp-slide-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
    
    .hsp-headline {
        font-size: 28px;
    }
    
    .hsp-subheadline {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .hsp-navigation {
        left: 30px;
        right: 30px;
        bottom: 20px;
        flex-direction: column;
        gap: 20px;
    }
    
    .hsp-progress {
        order: 2;
    }
    
    .hsp-arrows {
        order: 1;
    }
    
    .hsp-side-cta {
        display: none;
    }
    
    .hsp-arrow {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hsp-slide-content {
        padding: 20px;
        padding-bottom: 100px;
    }
    
    .hsp-headline {
        font-size: 24px;
    }
    
    .hsp-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    
    .hsp-cta-button {
        padding: 12px 24px;
        font-size: 12px;
    }
    
    .hsp-progress-bar {
        width: 60px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hsp-slide,
    .hsp-slide-bg img,
    .hsp-subtitle,
    .hsp-headline,
    .hsp-subheadline,
    .hsp-cta-button {
        transition: none;
    }
    
    .hsp-slide.hsp-active .hsp-slide-bg img {
        transform: none;
    }
}

/* Print styles */
@media print {
    .hsp-hero-slider {
        height: auto;
        page-break-inside: avoid;
    }
    
    .hsp-slide {
        position: relative;
        opacity: 1;
        visibility: visible;
    }
    
    .hsp-navigation,
    .hsp-side-cta {
        display: none;
    }
}
