/* ==========================================================================
   RS SLIDE - RESPONSIVE & ACCESSIBLE HERO SLIDER STYLES
   ========================================================================== */

.rs-slider-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary-dark);
    color: #FFFFFF;
    min-height: 580px;
}

.rs-slider-container {
    position: relative;
    width: 100%;
    min-height: 580px;
    height: 100%;
}

.rs-slides-track {
    position: relative;
    width: 100%;
    min-height: 580px;
    height: 100%;
}

.rs-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    background: var(--slide-bg);
    display: flex;
    align-items: center;
    padding: 60px 0 90px;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Slayt Arka Plan Görseli */
.rs-slide-bg-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Sığdırma & Hizalama Seçenekleri */
.rs-slide-bg-media.fit-cover { background-size: cover; background-position: center center; }
.rs-slide-bg-media.fit-top { background-size: cover; background-position: center top; }
.rs-slide-bg-media.fit-bottom { background-size: cover; background-position: center bottom; }
.rs-slide-bg-media.fit-contain { background-size: contain; background-position: center center; }

/* Şeffaf ve Net Karartma Katmanları (Görseli Asla Bulanıklaştırmaz, Net Gösterir) */
.rs-slide-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Hafif Karartma (Görsel %100'e yakın net ve canlıdır) */
.rs-slide-overlay.overlay-light {
    background: linear-gradient(
        90deg, 
        rgba(15, 23, 42, 0.52) 0%, 
        rgba(15, 23, 42, 0.22) 55%, 
        rgba(15, 23, 42, 0.05) 100%
    );
}

/* Dengeli / Standart Karartma (Varsayılan - Hem görsel çok net hem yazılar kusursuz okunur) */
.rs-slide-overlay.overlay-medium {
    background: linear-gradient(
        90deg, 
        rgba(15, 23, 42, 0.68) 0%, 
        rgba(15, 23, 42, 0.36) 55%, 
        rgba(15, 23, 42, 0.12) 100%
    );
}

/* Koyu Karartma (Yüksek kontrastlı metin odaklı) */
.rs-slide-overlay.overlay-dark {
    background: linear-gradient(
        90deg, 
        rgba(15, 23, 42, 0.82) 0%, 
        rgba(15, 23, 42, 0.55) 55%, 
        rgba(15, 23, 42, 0.25) 100%
    );
}

/* Karartma Yok (Orijinal görsel) */
.rs-slide-overlay.overlay-none {
    background: transparent;
}

@media (max-width: 768px) {
    .rs-slide-overlay.overlay-light {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
    }
    .rs-slide-overlay.overlay-medium {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%);
    }
    .rs-slide-overlay.overlay-dark {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.70) 0%, rgba(15, 23, 42, 0.88) 100%);
    }
}

.rs-slide-bg-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.rs-slide-content-wrap {
    position: relative;
    z-index: 5;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%;
}

.rs-slide-content {
    max-width: 820px;
    animation: slideUp 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Badge */
.rs-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.rs-slide-badge .badge-dot {
    background-color: var(--badge-accent, #E63946);
    box-shadow: 0 0 10px var(--badge-accent, #E63946);
}

/* Title */
.rs-slide-title {
    color: #FFFFFF;
    font-size: clamp(1.9rem, 3.2vw + 0.8rem, 3.2rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    word-break: break-word;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.rs-slide-title .title-highlight {
    color: var(--color-yellow);
    display: inline-block;
    position: relative;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.rs-slide-subtitle {
    color: #F8FAFC;
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 30px;
    max-width: 680px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Actions */
.rs-slide-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

/* Stats */
.rs-slide-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rs-stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: #CBD5E1;
    font-weight: 600;
}

/* Navigation Arrows */
.rs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.rs-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.1);
}

.rs-arrow:focus {
    outline: 3px solid var(--color-yellow);
}

.rs-prev { left: 24px; }
.rs-next { right: 24px; }

.rs-arrow svg {
    width: 24px;
    height: 24px;
}

/* Top Right Playback Controls (WCAG 2.2.2) */
.rs-top-playback {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}
.rs-top-playback:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.4);
}

.rs-playback-btn {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.rs-playback-btn:hover {
    color: var(--color-yellow);
}
.rs-playback-btn:focus {
    outline: 2px solid var(--color-yellow);
    border-radius: 4px;
}

.rs-slide-counter {
    font-size: 0.8rem;
    font-weight: 700;
    color: #CBD5E1;
    font-family: var(--font-heading);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 10px;
}

/* Controls Bar (Centered Dots) */
.rs-controls-bar {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 10;
}

.rs-controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rs-dot {
    width: 36px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 0;
    transition: var(--transition);
}

.rs-dot.is-active {
    width: 54px;
    background: #FFFFFF;
}

.rs-dot:focus {
    outline: 2px solid var(--color-yellow);
}

/* Mobile & Tablet Slider Adjustments */
@media (max-width: 1024px) {
    .rs-slide-title {
        font-size: 2.6rem;
    }
    .rs-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .rs-slider-section, .rs-slider-container, .rs-slides-track, .rs-slide {
        min-height: 480px;
    }
    .rs-slide {
        padding: 36px 0 65px;
    }
    .rs-slide-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-bottom: 14px;
    }
    .rs-slide-title {
        font-size: 1.75rem;
        line-height: 1.22;
        margin-bottom: 14px;
    }
    .rs-slide-subtitle {
        font-size: 0.94rem;
        margin-bottom: 22px;
        line-height: 1.5;
    }
    .rs-slide-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        max-width: 320px;
        margin-bottom: 24px;
    }
    .rs-slide-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .rs-slide-stats {
        gap: 16px;
        padding-top: 18px;
        flex-wrap: wrap;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .stat-label {
        font-size: 0.72rem;
    }
    .rs-top-playback {
        top: 14px;
        right: 14px;
        padding: 4px 10px;
    }
    .rs-playback-btn {
        font-size: 0.75rem;
    }
    .rs-slide-counter {
        font-size: 0.72rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY & HIGH-ZOOM ADAPTATIONS (A+, A++, Dyslexia)
   ========================================================================== */

/* A+ (Large Font) */
html[data-font-size="large"] .rs-slider-section,
html[data-font-size="large"] .rs-slider-container,
html[data-font-size="large"] .rs-slides-track,
html[data-font-size="large"] .rs-slide {
    min-height: 640px;
}

html[data-font-size="large"] .rs-slide {
    padding: 40px 0 80px;
}

html[data-font-size="large"] .rs-slide-title {
    font-size: clamp(1.75rem, 2.5vw + 0.6rem, 2.45rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

html[data-font-size="large"] .rs-slide-subtitle {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

html[data-font-size="large"] .rs-slide-actions {
    margin-bottom: 24px;
    gap: 12px;
}

html[data-font-size="large"] .rs-slide-stats {
    padding-top: 16px;
    gap: 20px;
}

/* A++ (Extra Large Font) */
html[data-font-size="xlarge"] .rs-slider-section,
html[data-font-size="xlarge"] .rs-slider-container,
html[data-font-size="xlarge"] .rs-slides-track,
html[data-font-size="xlarge"] .rs-slide {
    min-height: 720px;
}

html[data-font-size="xlarge"] .rs-slide {
    padding: 35px 0 80px;
}

html[data-font-size="xlarge"] .rs-slide-title {
    font-size: clamp(1.6rem, 2.2vw + 0.5rem, 2.15rem);
    line-height: 1.22;
    margin-bottom: 14px;
}

html[data-font-size="xlarge"] .rs-slide-subtitle {
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 20px;
}

html[data-font-size="xlarge"] .rs-slide-actions {
    margin-bottom: 20px;
    gap: 10px;
}

html[data-font-size="xlarge"] .rs-slide-stats {
    padding-top: 14px;
    gap: 16px;
}

html[data-font-size="xlarge"] .stat-value {
    font-size: 1.35rem;
}

/* Dyslexia Mode */
html.dyslexia-font .rs-slider-section,
html.dyslexia-font .rs-slider-container,
html.dyslexia-font .rs-slides-track,
html.dyslexia-font .rs-slide {
    min-height: 680px;
}

html.dyslexia-font .rs-slide {
    padding: 40px 0 80px;
}

html.dyslexia-font .rs-slide-title {
    font-size: clamp(1.65rem, 2.4vw + 0.6rem, 2.3rem);
    line-height: 1.35 !important;
}

html.dyslexia-font .rs-slide-subtitle {
    font-size: 1.05rem;
    line-height: 1.6 !important;
}

/* Mobile & Extra Large Font together */
@media (max-width: 768px) {
    html[data-font-size="large"] .rs-slider-section,
    html[data-font-size="large"] .rs-slider-container,
    html[data-font-size="large"] .rs-slides-track,
    html[data-font-size="large"] .rs-slide {
        min-height: 560px;
    }

    html[data-font-size="xlarge"] .rs-slider-section,
    html[data-font-size="xlarge"] .rs-slider-container,
    html[data-font-size="xlarge"] .rs-slides-track,
    html[data-font-size="xlarge"] .rs-slide {
        min-height: 620px;
    }
}

