/**
 * Hero Slider Styles
 * 
 * Premium homepage slider with 15 sedcards rotating every 2400ms
 * 
 * @package Noble_Frontend_Display
 * @since 2.42.0
 */

/* Section Header */
.hero-slider-section-header {
    margin-bottom: 30px;
    margin-top: 0;
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both; /* Verhindert Float-Probleme */
    /* Innerhalb archive-container, keine eigene max-width nötig */
}

.hero-slider-title-section {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #dbc16d;
    margin: 0 0 20px 0;
    text-align: center; /* Zentriert */
    display: block !important; /* Force display */
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .hero-slider-title-section {
        font-size: 28px;
        margin-bottom: 15px;
    }
}

.noble-hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px; /* Gleiche Breite wie Filter */
    margin: 0 auto 40px;
    margin-top: 0;
    padding: 0 40px; /* Platz für Navigation außerhalb (30px + 10px Buffer) */
    background: transparent; /* Kein Background */
    overflow: visible; /* Navigation darf außerhalb sein */
    z-index: 10;
    clear: both; /* Verhindert Float-Probleme */
}

/* Mobile: Kein Padding für Navigation */
@media (max-width: 1024px) {
    .noble-hero-slider-wrapper {
        padding: 0;
        overflow: hidden; /* Auf Mobile wieder hidden */
    }
}

.noble-hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 500px;
}

.noble-hero-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Desktop: 3 Slides nebeneinander */
@media (min-width: 1025px) {
    .noble-hero-slider-container {
        overflow: hidden; /* Wichtig: Verhindert horizontales Scrollen */
    }
    
    .noble-hero-slider-track {
        flex-direction: row;
        gap: 20px;
        width: max-content !important; /* Breite passt sich allen Slides an */
        min-width: 100%; /* Mindestens Container-Breite */
        flex-wrap: nowrap !important; /* Verhindert Umbruch, alle Slides nebeneinander */
        display: flex !important; /* Force flex display */
    }
    
    .hero-slider-slide {
        /* WICHTIG: Breite basiert auf Container, nicht Track! */
        flex: 0 0 calc(33.333% - 13.33px); /* 3 Slides = 33.333% minus gap (20px / 3 = 6.67px pro Slide) */
        width: calc(33.333% - 13.33px);
        min-width: calc(33.333% - 13.33px);
        max-width: calc(33.333% - 13.33px); /* Verhindert Wachstum */
        height: 100%;
        opacity: 1 !important; /* Desktop: Alle Slides IMMER sichtbar */
        visibility: visible !important; /* Desktop: Alle Slides IMMER sichtbar */
        position: relative;
        pointer-events: auto;
        flex-shrink: 0; /* Verhindert Schrumpfen */
        box-sizing: border-box; /* Wichtig für korrekte Breitenberechnung */
        display: block !important; /* Force display */
    }
    
    /* Auf Desktop ist .active nicht relevant für Sichtbarkeit */
    .hero-slider-slide.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Mobile: Single Hero Slider - NUR 1 Slide sichtbar */
@media (max-width: 1024px) {
    .noble-hero-slider-container {
        height: 500px;
        overflow: hidden;
    }
    
    .noble-hero-slider-track {
        flex-direction: row;
        gap: 0;
        width: 100%;
    }
    
    .hero-slider-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0 !important; /* Mobile: Alle versteckt */
        visibility: hidden !important; /* Mobile: Alle versteckt */
        transition: opacity 0.6s ease, visibility 0.6s ease;
        z-index: 0;
        pointer-events: none;
        display: none !important; /* Mobile: Standardmäßig versteckt */
    }
    
    .hero-slider-slide.active {
        opacity: 1 !important; /* Mobile: Nur aktiver Slide sichtbar */
        visibility: visible !important;
        z-index: 1;
        pointer-events: auto;
        display: block !important;
    }
}

.hero-slider-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.hero-slider-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    background: #0d0d0d;
}

.hero-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    /* 🔒 Image Protection: Verhindert Drag-and-Drop und Textauswahl */
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    pointer-events: auto !important; /* Erlaubt Klicks, verhindert nur Drag */
    /* 🔒 iOS-spezifischer Schutz: Verhindert Long-Press-Menü */
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important; /* Verhindert Zoom-Gesten, erlaubt Pan */
}

.hero-slider-link:hover .hero-slider-image {
    transform: scale(1.05);
}

.hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(1, 34, 28, 0) 0%,
        rgba(1, 34, 28, 0.3) 50%,
        rgba(1, 34, 28, 0.8) 100%
    );
    pointer-events: none;
}

.hero-slider-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.hero-slider-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.hero-slider-badge-online {
    background: rgba(76, 175, 80, 0.95);
    color: #fff;
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-slider-badge-premium {
    background: linear-gradient(135deg, #dbc16d, #ecd292);
    color: #01221c;
    font-weight: 700;
}

.hero-slider-badge-verified {
    background: rgba(28, 60, 44, 0.95);
    color: #dbc16d;
    border: 1px solid #dbc16d;
}

.hero-slider-badge-special {
    background: rgba(255, 107, 107, 0.95);
    color: #fff;
    animation: pulse-special 1.5s infinite;
}

@keyframes pulse-special {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-slider-badge-travel {
    background: rgba(33, 150, 243, 0.95);
    color: #fff;
}

.hero-slider-badge-featured {
    background: linear-gradient(135deg, #dbc16d 0%, #ecd292 50%, #dbc16d 100%);
    background-size: 200% 200%;
    color: #01221c;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(219, 193, 109, 0.4), 0 0 20px rgba(219, 193, 109, 0.2);
    animation: premium-shimmer 3s ease-in-out infinite;
}

.hero-slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 2;
    color: #fff;
}

.hero-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
}

.hero-slider-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #dbc16d;
}

.hero-slider-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(219, 193, 109, 0.2);
    border: 1px solid rgba(219, 193, 109, 0.5);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #dbc16d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-slider-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.hero-slider-stars {
    display: flex;
    gap: 2px;
}

.hero-slider-stars .star {
    font-size: 20px;
    line-height: 1;
}

.hero-slider-stars .star-full {
    color: #dbc16d;
}

.hero-slider-stars .star-half {
    color: #dbc16d;
    opacity: 0.6;
}

.hero-slider-stars .star-empty {
    color: rgba(219, 193, 109, 0.3);
}

.hero-slider-rating-text {
    font-size: 16px;
    font-weight: 700;
    color: #dbc16d;
    font-family: 'Lato', sans-serif;
}

.hero-slider-review-count {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.hero-slider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-slider-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-slider-meta-item svg {
    flex-shrink: 0;
}

.hero-slider-location {
    color: #ecd292;
}

.hero-slider-age {
    color: rgba(255, 255, 255, 0.9);
}

.hero-slider-price {
    font-weight: 700;
    color: #dbc16d;
    font-size: 18px;
}

/* Services Tags */
.hero-slider-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-slider-service-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(1, 34, 28, 0.7);
    border: 1px solid rgba(219, 193, 109, 0.3);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #ecd292;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-slider-link:hover .hero-slider-service-tag {
    border-color: #dbc16d;
    background: rgba(1, 34, 28, 0.9);
}

.hero-slider-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #dbc16d, #ecd292);
    color: #01221c;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 15px rgba(219, 193, 109, 0.4);
    font-size: 14px;
}

.hero-slider-cta svg {
    transition: transform 0.3s ease;
}

.hero-slider-link:hover .hero-slider-cta {
    background: linear-gradient(135deg, #ecd292, #dbc16d);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(219, 193, 109, 0.6);
}

.hero-slider-link:hover .hero-slider-cta svg {
    transform: translateX(5px);
}

/* Navigation - Außerhalb des Content-Bereichs */
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 34, 28, 0.9);
    border: 2px solid rgba(219, 193, 109, 0.5);
    color: #dbc16d;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slider-nav:hover {
    background: #dbc16d;
    border-color: #dbc16d;
    color: #01221c;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 15px rgba(219, 193, 109, 0.5);
}

/* Desktop: Navigation außerhalb des Darstellungsbereichs */
@media (min-width: 1025px) {
    .hero-slider-nav {
        width: 50px;
        height: 50px;
    }
    
    .hero-slider-prev {
        left: -30px !important; /* 30px Abstand außerhalb des Containers */
    }
    
    .hero-slider-next {
        right: -30px !important; /* 30px Abstand außerhalb des Containers */
    }
}

/* Mobile: Navigation innerhalb des Containers */
@media (max-width: 1024px) {
    .hero-slider-prev {
        left: 10px !important;
    }
    
    .hero-slider-next {
        right: 10px !important;
    }
}

.hero-slider-nav svg {
    width: 24px;
    height: 24px;
}

/* Dots navigation - Unterhalb des Sliders */
.noble-hero-slider-dots {
    position: relative; /* Relativ statt absolut */
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    margin-top: 20px; /* Abstand zum Slider */
    padding: 12px 16px;
    background: transparent; /* Kein Background mehr */
    border-radius: 0;
    backdrop-filter: none;
    border: none;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(219, 193, 109, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.hero-slider-dot:hover {
    border-color: #dbc16d;
    background: rgba(219, 193, 109, 0.6);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: #dbc16d;
    border-color: #dbc16d;
    width: 28px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(219, 193, 109, 0.5);
}

/* Mobile: Dots entfernen */
@media (max-width: 1024px) {
    .noble-hero-slider-dots {
        display: none !important; /* Dots auf Mobile komplett verstecken */
    }
}

/* Desktop: 3 Slides Layout */
@media (min-width: 1025px) {
    .noble-hero-slider-container {
        height: 450px; /* Höher für 3 Slides */
    }
    
    .hero-slider-image-wrapper {
        height: 100%;
        min-height: 450px;
    }
    
    .hero-slider-content {
        padding: 30px 25px;
    }
    
    .hero-slider-title {
        font-size: 28px;
    }
    
    .hero-slider-meta {
        font-size: 15px;
        gap: 15px;
    }
    
    .hero-slider-services {
        margin-bottom: 15px;
    }
    
    .hero-slider-service-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .hero-slider-cta {
        font-size: 13px;
        padding: 12px 25px;
    }
    
    .hero-slider-badges {
        top: 15px;
        right: 15px;
    }
    
    .hero-slider-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Mobile Responsive */
@media (max-width: 1400px) {
    .noble-hero-slider-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    /* Mobile: Hero Slider Mode */
    .noble-hero-slider-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .noble-hero-slider-wrapper {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .hero-slider-image-wrapper {
        height: 400px;
    }
    
    .hero-slider-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-slider-rating {
        align-items: flex-start;
    }
    
    .hero-slider-title {
        font-size: 28px;
    }
    
    .hero-slider-content {
        padding: 30px 20px;
    }
    
    .hero-slider-meta {
        font-size: 14px;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .hero-slider-services {
        margin-bottom: 15px;
    }
    
    .hero-slider-service-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .hero-slider-cta {
        font-size: 13px;
        padding: 12px 28px;
    }
    
    .hero-slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
    
    .hero-slider-badges {
        top: 10px;
        right: 10px;
    }
    
    .hero-slider-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .hero-slider-image-wrapper {
        height: 350px;
    }
    
    .hero-slider-title {
        font-size: 24px;
    }
    
    .hero-slider-content {
        padding: 20px 15px;
    }
    
    .hero-slider-cta {
        padding: 10px 20px;
        font-size: 12px;
    }
}

