﻿/* ===== Text Marquee / Apple-Stripe Style ===== */

.text-marquee-section {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.text-marquee-section--light {
    background: #ffffff;
}

.text-marquee-section--gray {
    background: #F3F4F6;
}

.text-marquee-section--dark {
    background: #0B1F3A;
}

.text-marquee-head {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.text-marquee {
    position: relative;
    width: 100%;
    min-height: var(--marquee-height, 80px);
    overflow: hidden;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.88)), url("/images/anasayfa/texture.png");
    background-size: cover;
    background-position: center;
}

.text-marquee-section--gray .text-marquee {
    background: linear-gradient(180deg, rgba(243,244,246,.96), rgba(243,244,246,.96)), url("/images/anasayfa/texture.png");
}

.text-marquee-section--dark .text-marquee {
    background: linear-gradient(180deg, rgba(11,31,58,.96), rgba(11,31,58,.96)), url("/images/anasayfa/texture.png");
}

.text-marquee__viewport {
    overflow: hidden;
    height: var(--marquee-height, 80px);
    display: flex;
    align-items: center;
    position: relative;
}

.text-marquee__track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: text-marquee-scroll var(--marquee-speed, 30s) linear infinite;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.text-marquee__group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.text-marquee__item {
    white-space: nowrap;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(55,65,81,.78);
    padding: 0 20px;
    line-height: 1;
}

.text-marquee-section--dark .text-marquee__item {
    color: rgba(255,255,255,.82);
}

.text-marquee__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(30,58,138,.28);
    flex-shrink: 0;
    margin-right: 6px;
}

.text-marquee-section--dark .text-marquee__dot {
    background: rgba(255,255,255,.25);
}

/* premium fade */
.text-marquee__fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 88px;
    z-index: 2;
    pointer-events: none;
}

.text-marquee__fade--left {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.text-marquee__fade--right {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
}

.text-marquee-section--gray .text-marquee__fade--left {
    background: linear-gradient(to right, #F3F4F6 0%, rgba(243,244,246,0) 100%);
}

.text-marquee-section--gray .text-marquee__fade--right {
    background: linear-gradient(to left, #F3F4F6 0%, rgba(243,244,246,0) 100%);
}

.text-marquee-section--dark .text-marquee__fade--left {
    background: linear-gradient(to right, #0B1F3A 0%, rgba(11,31,58,0) 100%);
}

.text-marquee-section--dark .text-marquee__fade--right {
    background: linear-gradient(to left, #0B1F3A 0%, rgba(11,31,58,0) 100%);
}



/* 3 grup olduğu için 1 grup kadar kay */
@keyframes text-marquee-scroll {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-33.333%, 0, 0);
    }
}

@media (max-width: 768px) {
    .text-marquee__item {
        font-size: 0.96rem;
        padding: 0 16px;
    }

    .text-marquee__fade {
        width: 44px;
    }
}
