/* Slider Stilleri
   NOT: .container, * reset ve font-family tanımı spasporheader.css içinde.
   Bu dosyanın doğru çalışması için spasporheader.css'in sayfada önceden
   yüklenmiş olması gerekir (spasporheader.php her zaman spasporslider.php'den
   önce include edilmeli). */

:root {
    --primary-color: #226671;
    --secondary-color: #e58810;
}

/* Tüm Ekranı Kaplayan Ana Kapsayıcı */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #111;
}

/* Slider Yapısı */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    z-index: 1;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Video ve Overlay */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slide.active .video-bg {
    transform: scale(1);
}

.mobile-video { display: none; }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: -1;
}

/* İçerik Alanı */
.hero-content {
    max-width: 850px;
    color: #ffffff;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.55rem clamp(1rem, 3vw, 1.5rem);
    border-radius: 50px;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 500;
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary-color);
    flex-shrink: 0;
}

/* Akıcı (fluid) başlık boyutu: en küçük telefonda ~1.5rem, en büyük ekranda 3.2rem.
   Aradaki her genişlikte orantılı şekilde büyür/küçülür, breakpoint'lerde ani zıplama olmaz. */
.hero-content h1 {
    font-size: clamp(1.5rem, 4.5vw + 0.6rem, 3.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: clamp(0.8rem, 2vw, 1.5rem);
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    word-wrap: break-word;
}

.hero-content h1 span {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: clamp(0.88rem, 1.6vw + 0.4rem, 1.1rem);
    line-height: 1.65;
    color: #f3f4f6;
    max-width: 650px;
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Hero Butonları */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.4rem, 3vw, 2.2rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1rem);
    box-shadow: 0 10px 25px rgba(34, 102, 113, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #1a515a;
    transform: translateY(-3px);
}

.btn-primary .icon-circle {
    background-color: #ffffff;
    color: var(--primary-color);
    width: clamp(26px, 4vw, 32px);
    height: clamp(26px, 4vw, 32px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    flex-shrink: 0;
}

/* Siren Efektli Video Butonu */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(229, 136, 16, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(229, 136, 16, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 136, 16, 0); }
}

.btn-video {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 2vw, 1rem);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.btn-video:hover {
    color: var(--secondary-color);
}

.btn-video .icon-circle {
    background-color: var(--secondary-color);
    color: #ffffff;
    width: clamp(42px, 7vw, 55px);
    height: clamp(42px, 7vw, 55px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    flex-shrink: 0;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    transition: all 0.3s ease;
}

.btn-video:hover .icon-circle {
    background-color: #ffffff;
    color: var(--secondary-color);
    animation: none;
}

/* PREMIUM SLIDER OKLARI (Sağda Ortalanmış, Çizgili) */
.slider-controls {
    position: absolute;
    right: clamp(1rem, 3vw, 3rem);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    z-index: 30;
}

.nav-arrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.nav-arrow .text {
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.nav-arrow .line {
    width: clamp(25px, 4vw, 40px);
    height: 1px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-arrow.prev:hover .line { width: 60px; background-color: var(--secondary-color); }
.nav-arrow.next:hover .line { width: 60px; background-color: var(--secondary-color); }
.nav-arrow.prev:hover .text { transform: translateX(-5px); }
.nav-arrow.next:hover .text { transform: translateX(-5px); }

/* =========================================================
   RESPONSIVE / MOBİL UYUMLULUK (Sadece slider ile ilgili)
   ========================================================= */

/* Tablet / büyük telefon */
@media (max-width: 768px) {
    /* Masaüstü videosunu gizle, mobil videoyu göster */
    .desktop-video { display: none; }
    .mobile-video { display: block; }

    .hero-content {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Ok kontrollerini alta, ortaya al */
    .slider-controls {
        top: auto;
        bottom: 1.2rem;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

/* Kısa yükseklikli ekranlar (yatay telefon vb.) */
@media (max-height: 480px) and (max-width: 900px) {
    .slider-container {
        height: auto;
        min-height: 100vh;
    }

    .hero-content p {
        display: none;
    }
}