/**
 * Advanced Hero Slider Widget Styles
 * 
 * @package Elementor_Swiss_Kit
 * @since 1.0.0
 */

/* ==========================================================================
   HERO SLIDER CONTAINER
   ========================================================================== */

.esk-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* ==========================================================================
   SLIDES CONTAINER
   ========================================================================== */

.esk-slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   INDIVIDUAL SLIDES
   ========================================================================== */

.esk-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

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

/* Video Background */
.esk-slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

/* Slide Overlay */
.esk-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

/* Dark Overlay */
.esk-hero-slider[data-overlay-type="dark"] .esk-slide-overlay {
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.3));
}

/* Light Overlay */
.esk-hero-slider[data-overlay-type="light"] .esk-slide-overlay {
    background: rgba(255, 255, 255, var(--overlay-opacity, 0.3));
}

/* Custom Color Overlay */
.esk-hero-slider[data-overlay-type="custom"] .esk-slide-overlay {
    background: var(--overlay-color, rgba(0, 0, 0, 0.3));
    opacity: var(--overlay-opacity, 0.3);
}

/* Gradient Overlay */
.esk-hero-slider[data-overlay-type="gradient"] .esk-slide-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

/* ==========================================================================
   SLIDE CONTENT
   ========================================================================== */

.esk-slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 3;
    color: #ffffff;
    max-width: 600px;
    text-align: left;
    padding: 20px;
}

/* Content Alignment */
.esk-slide-content[style*="text-align: center"] {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 800px;
}

.esk-slide-content[style*="text-align: right"] {
    left: auto;
    right: 5%;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.esk-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.esk-slide-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.esk-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Button Alignment */
.esk-slide-buttons[style*="justify-content: left"] {
    justify-content: flex-start;
}

.esk-slide-buttons[style*="justify-content: center"] {
    justify-content: center;
}

.esk-slide-buttons[style*="justify-content: right"] {
    justify-content: flex-end;
}

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */

.esk-slide-btn {
    display: inline-block;
    padding: 15px 30px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

/* Primary Button (Button 1) */
.esk-slide-btn.esk-btn-primary {
    background: #e74c3c;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.esk-slide-btn.esk-btn-primary:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Secondary Button (Button 2) */
.esk-slide-btn.esk-btn-secondary {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.esk-slide-btn.esk-btn-secondary:hover {
    background: #ffffff;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.esk-slide-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.esk-slider-nav {
    position: absolute;
    z-index: 10;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ==========================================================================
   RESPONSIVE NAVIGATION
   ========================================================================== */

/* Desktop Navigation - Always visible by default */
.esk-slider-nav.nav-desktop {
    display: flex;
}

/* Tablet Navigation - Hidden by default, shown on tablet */
.esk-slider-nav.nav-tablet {
    display: none;
}

/* Mobile Navigation - Hidden by default, shown on mobile */
.esk-slider-nav.nav-mobile {
    display: none;
}

/* Show tablet navigation on tablet devices */
@media (max-width: 1024px) and (min-width: 769px) {
    .esk-slider-nav.nav-desktop {
        display: none;
    }
    
    .esk-slider-nav.nav-tablet {
        display: flex;
    }
}

/* Show mobile navigation on mobile devices */
@media (max-width: 768px) {
    .esk-slider-nav.nav-desktop,
    .esk-slider-nav.nav-tablet {
        display: none;
    }
    
    .esk-slider-nav.nav-mobile {
        display: flex;
    }
}

/* Navigation Positioning */
.esk-slider-nav.nav-right {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
}

.esk-slider-nav.nav-left {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
}

.esk-slider-nav.nav-bottom {
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    flex-direction: row;
}

.esk-slider-nav.nav-top {
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    flex-direction: row;
}

/* Navigation Items */
.nav-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
}

.nav-number:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.nav-number.active {
    color: #ffffff;
    background: rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

/* Countdown Animation */
.nav-number.active::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 50%;
    background: conic-gradient(
        from -90deg,
        #e74c3c 0deg,
        #e74c3c 0deg,
        transparent 0deg,
        transparent 360deg
    );
    animation: none;
    z-index: -1;
}

.nav-number.active.animate::before {
    animation: countdownBorder 8s linear forwards;
}

@keyframes countdownBorder {
    0% {
        background: conic-gradient(
            from -90deg,
            transparent 0deg,
            transparent 360deg
        );
    }
    100% {
        background: conic-gradient(
            from -90deg,
            #e74c3c 0deg,
            #e74c3c 360deg
        );
    }
}

/* ==========================================================================
   DOTS NAVIGATION STYLE
   ========================================================================== */

.esk-slider-nav.nav-dots .nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.esk-slider-nav.nav-dots .nav-dot .dot {
    display: none;
}

.esk-slider-nav.nav-dots .nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.esk-slider-nav.nav-dots .nav-dot.active {
    background: #e74c3c;
    transform: scale(1.3);
}

.esk-slider-nav.nav-dots .nav-dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid #e74c3c;
    border-radius: 50%;
    animation: ripple 1.5s infinite;
}

/* ==========================================================================
   THUMBNAILS NAVIGATION STYLE
   ========================================================================== */

.esk-slider-nav.nav-thumbnails {
    flex-direction: row;
    gap: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.esk-slider-nav.nav-thumbnails .nav-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.esk-slider-nav.nav-thumbnails .nav-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.esk-slider-nav.nav-thumbnails .nav-thumbnail.active {
    border-color: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.6);
}

.esk-slider-nav.nav-thumbnails .nav-thumbnail.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.3);
    border-radius: 4px;
}

.esk-slider-nav.nav-thumbnails .nav-thumbnail .thumbnail-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.esk-slider-nav.nav-thumbnails .nav-thumbnail:hover .thumbnail-number,
.esk-slider-nav.nav-thumbnails .nav-thumbnail.active .thumbnail-number {
    opacity: 1;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Progress Bar Style */
.esk-slider-nav.nav-progress {
    flex-direction: row;
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.esk-slider-nav.nav-progress .nav-number {
    width: auto;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    flex: 1;
    position: relative;
}

.esk-slider-nav.nav-progress .nav-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
}

.esk-slider-nav.nav-progress .nav-number.active::before {
    background: #e74c3c;
}

/* ==========================================================================
   ARROW NAVIGATION
   ========================================================================== */

.esk-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.esk-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.esk-slider-arrow:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.esk-arrow-prev {
    left: 30px;
}

.esk-arrow-next {
    right: 30px;
}

.esk-slider-arrow i {
    font-size: 18px;
    line-height: 1;
}

/* ==========================================================================
   BACKGROUND ANIMATIONS
   ========================================================================== */

/* Ken Burns Effect - Premium smooth animation */
.esk-hero-slider[data-background-animation="ken-burns"] .esk-slide {
    background-attachment: fixed;
    background-size: 100% 100%;
    background-position: center center;
}

.esk-hero-slider[data-background-animation="ken-burns"] .esk-slide.active {
    animation: kenBurns 20s ease-in-out infinite;
}

@keyframes kenBurns {
    0% {
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
    25% {
        background-size: 110% 110%;
        background-position: 40% 30%;
    }
    50% {
        background-size: 120% 120%;
        background-position: 60% 70%;
    }
    75% {
        background-size: 110% 110%;
        background-position: 70% 40%;
    }
    100% {
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}

/* Float Animation - Only apply to background */
.esk-hero-slider[data-background-animation="float"] .esk-slide {
    /* Remove animation from slide itself - only background should animate */
}

.esk-hero-slider[data-background-animation="float"] .esk-slide.active {
    /* Remove animation from slide itself - only background should animate */
}

@keyframes float {
    0%, 100% {
        background-position: center center;
    }
    50% {
        background-position: center calc(50% - 5px);
    }
}

/* Parallax Effect - Only apply to background */
.esk-hero-slider[data-background-animation="parallax"] .esk-slide {
    background-attachment: fixed;
    background-position: center center;
}

/* ==========================================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ========================================================================== */

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
    .esk-hero-slider {
        height: 100vh;
        min-height: 500px;
    }
    
    .esk-slide-content {
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 15px;
        text-align: center;
    }
    
    .esk-slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .esk-slide-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .esk-slide-button {
        padding: 12px 25px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .esk-slide-buttons {
        justify-content: center;
        gap: 10px;
    }
    
    /* Mobile Navigation */
    .esk-slider-nav.nav-right,
    .esk-slider-nav.nav-left {
        right: auto;
        left: 50%;
        bottom: 20px;
        top: auto;
        transform: translateX(-50%);
        flex-direction: row;
    }
    
    .nav-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .esk-slider-nav.nav-dots .nav-dot {
        width: 10px;
        height: 10px;
    }
    
    .esk-slider-nav.nav-thumbnails {
        gap: 6px;
        padding: 8px;
    }
    
    .esk-slider-nav.nav-thumbnails .nav-thumbnail {
        width: 50px;
        height: 35px;
    }
    
    /* Mobile Arrows */
    .esk-slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .esk-arrow-prev {
        left: 15px;
    }
    
    .esk-arrow-next {
        right: 15px;
    }
    
    .esk-slider-arrow i {
        font-size: 16px;
    }
}

/* Small Mobile Styles (up to 480px) */
@media (max-width: 480px) {
    .esk-slide-content {
        left: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .esk-slide-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .esk-slide-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .esk-slide-button {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .nav-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .esk-slider-nav.nav-dots .nav-dot {
        width: 8px;
        height: 8px;
    }
    
    .esk-slider-nav.nav-thumbnails .nav-thumbnail {
        width: 45px;
        height: 30px;
    }
    
    .esk-slider-arrow {
        width: 35px;
        height: 35px;
    }
    
    .esk-arrow-prev {
        left: 10px;
    }
    
    .esk-arrow-next {
        right: 10px;
    }
}

/* Tablet Styles (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .esk-slide-content {
        left: 8%;
        right: 8%;
        max-width: 500px;
    }
    
    .esk-slide-title {
        font-size: 3rem;
    }
    
    .esk-slide-subtitle {
        font-size: 1.2rem;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .esk-slide-content {
        left: 5%;
        right: auto;
        max-width: 600px;
    }
    
    .esk-slide-title {
        font-size: 4rem;
    }
    
    .esk-slide-subtitle {
        font-size: 1.3rem;
    }
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
    .esk-slide-content {
        max-width: 700px;
    }
    
    .esk-slide-title {
        font-size: 4.5rem;
    }
    
    .esk-slide-subtitle {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================================================== */

/* Focus indicators */
.esk-slider-arrow:focus,
.nav-number:focus,
.nav-dot:focus,
.nav-thumbnail:focus,
.esk-slide-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .esk-slide,
    .nav-number,
    .nav-dot,
    .nav-thumbnail,
    .esk-slider-arrow,
    .esk-slide-btn {
        transition: none;
    }
    
    .esk-hero-slider[data-background-animation="ken-burns"] .esk-slide.active,
    .esk-hero-slider[data-background-animation="float"] .esk-slide {
        animation: none;
    }
    
    .nav-number.active::before,
    .nav-number.active.animate::before,
    .nav-dot.active::after {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .esk-slide-overlay {
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    .nav-number,
    .nav-dot,
    .nav-thumbnail {
        border-width: 3px;
    }
    
    .esk-slider-arrow {
        border-width: 3px;
    }
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Hardware acceleration for smooth animations */
.esk-slide,
.nav-number,
.nav-dot,
.nav-thumbnail,
.esk-slider-arrow,
.esk-slide-btn {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize video rendering */
.esk-slide-video {
    will-change: transform;
    transform: translate3d(-50%, -50%, 0);
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .esk-hero-slider {
        height: auto;
        min-height: 300px;
    }
    
    .esk-slide {
        position: static;
        opacity: 1;
        visibility: visible;
        page-break-inside: avoid;
    }
    
    .esk-slider-nav,
    .esk-slider-arrow {
        display: none;
    }
    
    .esk-slide-content {
        position: static;
        transform: none;
        color: #000;
        background: #fff;
        padding: 20px;
        margin: 20px 0;
    }
    
    .esk-slide-title,
    .esk-slide-subtitle {
        color: #000;
        text-shadow: none;
    }
    
    .esk-slide-button {
        background: #000;
        color: #fff;
        border: 1px solid #000;
    }
}
