/* Ana sayfa banner */
.banner {
    --banner-ms: 6000ms;
    position: relative;
    width: 100%;
    min-height: clamp(460px, 72vh, 680px);
    overflow: hidden;
    color: #ffffff;
    background-color: #111827;
    background-image: linear-gradient(135deg, #111827 0%, #1e3a8a 100%);
}

.banner-track {
    position: absolute;
    inset: 0;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 0s linear 1s;
}

.banner-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    z-index: 1;
}

.banner-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform-origin: center;
}

.banner-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Yavaş yakınlaşma (Ken Burns) */
.banner-slide.is-active .banner-media {
    animation: banner-zoom calc(var(--banner-ms) + 2000ms) ease-out forwards;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.72));
}

.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 64rem;
    padding: 0 3.5rem 3rem;
    text-align: center;
}

.banner-content > * {
    opacity: 0;
    transform: translateY(26px);
}

.banner-slide.is-active .banner-content > * {
    animation: banner-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.banner-slide.is-active .banner-content > *:nth-child(1) { animation-delay: 0.25s; }
.banner-slide.is-active .banner-content > *:nth-child(2) { animation-delay: 0.45s; }
.banner-slide.is-active .banner-content > *:nth-child(3) { animation-delay: 0.65s; }

.banner-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.banner-text {
    margin: 0 auto 2rem;
    max-width: 42rem;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    line-height: 1.6;
    color: #d1d5db;
}

.banner-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
}
.banner-btn:hover {
    background: #1d4ed8;
}

/* Kontroller */
.banner-controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.banner-controls > * {
    pointer-events: auto;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    padding: 0 0 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.banner-arrow:hover {
    background: rgba(37, 99, 235, 0.85);
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.banner-dots {
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
.banner-dot.is-active {
    background: #ffffff;
    transform: scale(1.15);
}

.banner-pause {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(17, 24, 39, 0.45);
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
}
.banner-pause::before {
    content: "\275A\275A";
    letter-spacing: -2px;
}
.banner.is-paused .banner-pause::before {
    content: "\25B6";
    letter-spacing: 0;
}

.banner-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
}
.banner-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: #60a5fa;
    transform: scaleX(0);
    transform-origin: left;
}
.banner-progress span.run {
    animation: banner-progress var(--banner-ms) linear forwards;
}
.banner.is-paused .banner-progress span {
    animation: none;
    transform: scaleX(0);
}

@keyframes banner-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}
@keyframes banner-rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes banner-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (max-width: 640px) {
    .banner {
        min-height: 520px;
    }
    .banner-content {
        padding: 0 1.25rem 3.5rem;
    }
    .banner-arrow {
        top: auto;
        bottom: 14px;
        transform: none;
        width: 38px;
        height: 38px;
    }
}

/* Hareketi azaltma tercihi: animasyon yok, metinler hemen görünür */
@media (prefers-reduced-motion: reduce) {
    .banner-slide {
        transition: none;
    }
    .banner-slide.is-active .banner-media {
        animation: none;
    }
    .banner-content > *,
    .banner-slide.is-active .banner-content > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .banner-progress {
        display: none;
    }
}
