/* ========================================
   SWIPER.JS CUSTOM STYLES
   Knight Online Mobile Theme
   ======================================== */

/* Swiper Container */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #FFD700 !important;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

/* Pagination Bullets */
.swiper-pagination {
    bottom: 25px !important;
    z-index: 20 !important;
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #FFD700 !important;
    opacity: 1;
    width: 32px !important;
    border-radius: 6px !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px !important;
    }
    
    .swiper-pagination {
        bottom: 20px !important;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
    
    .swiper-pagination-bullet-active {
        width: 24px !important;
    }
    
    /* Mobile: Always show content (no hover) */
    .swiper-slide .slide-content {
        padding-bottom: 2.5rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    /* Mobile: Always show overlay */
    .swiper-slide .slide-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.95) 100%
        ) !important;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .swiper-pagination {
        bottom: 15px !important;
    }
    
    /* Small screens: Always show content */
    .swiper-slide .slide-content {
        padding-bottom: 2rem !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

/* Slide Content - HIDDEN by default, VISIBLE on hover */
.swiper-slide .slide-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 3rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.5s ease, visibility 0.5s ease !important;
    height: auto !important;
}


/* Animation removed - hover effect is enough */

/* Slide Overlay - Transparent by default, dark on hover */
.swiper-slide .slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: 2 !important;
    transition: background 0.6s ease !important;
}


/* Accessibility */
.swiper-button-next:focus,
.swiper-button-prev:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* ========================================
   MODERN SLIDE CONTENT ENHANCEMENTS
   ======================================== */

/* Animated Gradient for Subtitles */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    animation: gradient-shift 3s ease infinite;
}

/* Badge Pulse Animation */
@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Button Hover Animations */
.slide-content button {
    will-change: transform;
    transform-origin: center;
}

/* Text Glow Effect */
.slide-content h2 {
    animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
    from {
        text-shadow: 
            0 8px 32px rgba(0,0,0,0.9), 
            0 4px 16px rgba(0,0,0,0.8), 
            0 0 80px rgba(255,215,0,0.2);
    }
    to {
        text-shadow: 
            0 8px 32px rgba(0,0,0,0.9), 
            0 4px 16px rgba(0,0,0,0.8), 
            0 0 80px rgba(255,215,0,0.4);
    }
}

/* Smooth fade-in for content on hover */
@keyframes content-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

