/**
 * Event Slider Override Styles
 * Maximum specificity to ensure styles are applied over theme CSS
 */

/* Force slider container styles with maximum specificity */
body .sep-event-slider,
html body .sep-event-slider,
.wp-site-blocks .sep-event-slider {
    position: relative !important;
    margin: 20px 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    contain: style paint;
    transform: translateZ(0);
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* Force track styles */
body .sep-event-slider .sep-slider-track,
html body .sep-event-slider .sep-slider-track {
    display: flex !important;
    will-change: transform;
    /* Width set by JS dynamically */
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    /* No overflow hidden here - container handles clipping */
}

/* Force slide styles */
body .sep-event-slider .sep-slider-slide,
html body .sep-event-slider .sep-slider-slide {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Force card styles - ensure visibility */
body .sep-event-slider .sep-event-card,
html body .sep-event-slider .sep-event-card {
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* Force modern card style */
body .sep-event-slider .sep-event-card.card-style-modern,
html body .sep-event-slider .sep-event-card.card-style-modern {
    border-radius: 16px !important;
    color: var(--accent-contrast-color, #ffffff) !important;
}

body .sep-event-slider .sep-event-card.card-style-modern:not(.image-background),
html body .sep-event-slider .sep-event-card.card-style-modern:not(.image-background) {
    background: var(--accent-color, #667eea) !important;
}

body .sep-event-slider .sep-event-card.card-style-modern:not(.image-background)::before,
html body .sep-event-slider .sep-event-card.card-style-modern:not(.image-background)::before {
    display: none !important;
}

body .sep-event-slider .sep-card-bg-image,
html body .sep-event-slider .sep-card-bg-image {
    position: absolute !important;
    inset: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: 0 !important;
}

body .sep-event-slider .sep-card-bg-image::after,
html body .sep-event-slider .sep-card-bg-image::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: var(--accent-overlay, rgba(102, 126, 234, var(--overlay-opacity, 0.6))) !important;
}

body .sep-event-slider .sep-event-card.image-background,
html body .sep-event-slider .sep-event-card.image-background {
    position: relative !important;
    background-color: var(--accent-color, #333) !important;
}

/* Force card content */
body .sep-event-slider .sep-card-content,
html body .sep-event-slider .sep-card-content {
    padding: 20px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    color: inherit !important;
    height: 100% !important;
}

/* Meta container: full width, pills stacked and all equal width */
body .sep-event-slider .sep-event-meta,
html body .sep-event-slider .sep-event-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Force title styles */
body .sep-event-slider .sep-card-title,
html body .sep-event-slider .sep-card-title {
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: block !important;
    width: 100% !important;
    color: inherit !important;
}

/* Force navigation arrows */
body .sep-event-slider .sep-slider-nav,
html body .sep-event-slider .sep-slider-nav {
    position: absolute !important;
    top: 50% !important;
    margin-top: -25px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    color: #333 !important;
    outline: none !important;
}

/* Force navigation positioning */
body .sep-event-slider .sep-slider-nav.prev,
html body .sep-event-slider .sep-slider-nav.prev {
    left: 15px !important;
}

body .sep-event-slider .sep-slider-nav.next,
html body .sep-event-slider .sep-slider-nav.next {
    right: 15px !important;
}

/* Force dots styles */
body .sep-event-slider .sep-slider-dots,
html body .sep-event-slider .sep-slider-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px 0 !important;
    gap: 8px !important;
    margin: 0 !important;
}

body .sep-event-slider .sep-slider-dot,
html body .sep-event-slider .sep-slider-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #ccc !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .sep-event-slider .sep-slider-dot.active,
html body .sep-event-slider .sep-slider-dot.active {
    background: #007cba !important;
    transform: scale(1.3) !important;
}

/* Loading state - show content immediately */
body .sep-event-slider.loading,
html body .sep-event-slider.loading {
    min-height: 300px !important;
    display: block !important;
    background: transparent !important;
    position: relative !important;
}

body .sep-event-slider.loading .sep-slider-track,
html body .sep-event-slider.loading .sep-slider-track {
    display: flex !important;
    opacity: 0.8 !important;
}

body .sep-event-slider.loading::before,
html body .sep-event-slider.loading::before {
    content: "Laden..." !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: white !important;
    padding: 5px 10px !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    z-index: 100 !important;
    animation: pulse 2s infinite !important;
}

/* Meta items: flex pill with symmetric left/right padding */
body .sep-event-slider .sep-meta-item,
html body .sep-event-slider .sep-meta-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    font-size: 0.9rem !important;
    opacity: 1 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body .sep-event-slider .sep-meta-icon,
html body .sep-event-slider .sep-meta-icon {
    font-size: 1rem !important;
    color: #ffffff !important;
    text-align: center !important;
    width: 20px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

body .sep-event-slider .sep-meta-text,
html body .sep-event-slider .sep-meta-text {
    text-align: left !important;
    font-size: 0.9rem !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

/* Location pill inherits align-items: center from .sep-meta-item — no override needed */

/* Category badge */
body .sep-event-slider .sep-card-category,
html body .sep-event-slider .sep-card-category {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: inherit !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 10px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}