/**
 * ===== MODERN HERO SLIDER CSS =====
 * Sade ve modern tasarım için CSS
 */

/* Hero Slider Container */
.modern-hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

/* Hero Slides */
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: background-image 0.3s ease, opacity 0.3s ease;
    opacity: 1; /* Always visible, will be enhanced by JavaScript */
}

.hero-slide-bg.loaded {
    opacity: 1;
}

/* Responsive background images - JavaScript will handle the loading */

/* Fallback for no-JS - Default desktop images */
.hero-slide-bg {
    background-image: url('default/img/webp/desktop/1.webp');
}

/* Specific fallbacks for each slide */
.hero-slide:nth-child(1) .hero-slide-bg {
    background-image: url('default/img/webp/desktop/1.webp');
}

.hero-slide:nth-child(2) .hero-slide-bg {
    background-image: url('default/img/webp/desktop/2.webp');
}

.hero-slide:nth-child(3) .hero-slide-bg {
    background-image: url('default/img/webp/desktop/3.webp');
}

/* Responsive fallbacks */
@media (max-width: 768px) {
    .hero-slide:nth-child(1) .hero-slide-bg {
        background-image: url('default/img/webp/mobile/1.webp');
    }
    .hero-slide:nth-child(2) .hero-slide-bg {
        background-image: url('default/img/webp/mobile/2.webp');
    }
    .hero-slide:nth-child(3) .hero-slide-bg {
        background-image: url('default/img/webp/mobile/3.webp');
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide:nth-child(1) .hero-slide-bg {
        background-image: url('default/img/webp/tablet/1.webp');
    }
    .hero-slide:nth-child(2) .hero-slide-bg {
        background-image: url('default/img/webp/tablet/2.webp');
    }
    .hero-slide:nth-child(3) .hero-slide-bg {
        background-image: url('default/img/webp/tablet/3.webp');
    }
}

@media (min-width: 1025px) {
    .hero-slide:nth-child(1) .hero-slide-bg {
        background-image: url('default/img/webp/desktop/1.webp');
    }
    .hero-slide:nth-child(2) .hero-slide-bg {
        background-image: url('default/img/webp/desktop/2.webp');
    }
    .hero-slide:nth-child(3) .hero-slide-bg {
        background-image: url('default/img/webp/desktop/3.webp');
    }
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10 !important;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 1rem;
    color: #ffd700;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-out;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #4e92b7 0%, #68b6e3 100%);
    border-color: #4e92b7;
    box-shadow: 0 8px 25px rgba(106, 127, 46, 0.4);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(106, 127, 46, 0.6);
    background: linear-gradient(135deg, #275c75 0%, #4e92b7 100%);
}

.hero-actions .btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
}

.hero-actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Button active states */
.hero-actions .btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

.hero-actions .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ===== CLEAN NAVIGATION STYLES ===== */
/* Single, clean navigation button styles */
.swiper-button-prev,
.swiper-button-next {
    /* Reset all styles first */
    all: unset !important;
    
    /* Position and size */
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    
    /* Visual appearance */
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    
    /* Layout */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Interaction */
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
    
    /* Typography */
    color: white !important;
    font-size: 1.5rem !important;
    
    /* Effects */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    
    /* Z-index to ensure visibility */
    z-index: 99999 !important;
}

/* Position buttons */
.swiper-button-prev {
    left: 30px !important;
}

.swiper-button-next {
    right: 30px !important;
}

/* Hide default Swiper arrows */
.swiper-button-prev::after,
.swiper-button-next::after {
    display: none !important;
    content: none !important;
}

/* Hover effects */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-50%) scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3) !important;
}

/* Active state */
.swiper-button-prev:active,
.swiper-button-next:active {
    transform: translateY(-50%) scale(0.95) !important;
    transition: all 0.1s ease !important;
}

/* Pagination */
.hero-pagination {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
    background: white;
    transform: scale(1.2);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.hero-scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.5rem;
    opacity: 0.6;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .swiper-button-prev {
        left: 20px !important;
    }
    
    .swiper-button-next {
        right: 20px !important;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 576px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
    
    .swiper-button-prev {
        left: 15px !important;
    }
    
    .swiper-button-next {
        right: 15px !important;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== SLIDE-SPECIFIC STYLES ===== */
/* Slide 1 - Umre */
.hero-slide:nth-child(1) .hero-badge {
    background: rgba(106, 127, 46, 0.3);
    border-color: rgba(106, 127, 46, 0.5);
}

/* ===== HOMEPAGE PAGE-SPECIFIC OVERRIDES ===== */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Swiper minimal override to avoid layout thrashing */
.swiper-wrapper {
    transform: none !important;
    will-change: auto !important;
}

/* Slide 2 - Hac */
.hero-slide:nth-child(2) .hero-badge {
    background: rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Slide 3 - Kültür */
.hero-slide:nth-child(3) .hero-badge {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.5);
}
