/**
 * Ana sayfa referans logoları: 1 bant, sağa doğru sonsuz yatay kaydırma
 * - Düz (yatay), eğim yok
 * - Başlık yok
 * - Renkler: site --color-* değişkenleri (koyu tema + primary vurgu)
 */

.home-references-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: var(--color-dark);
    overflow-x: clip;
    overflow-y: visible;
}

/* Tek şerit: sticky, ekran ortasında */
.home-ref-strips {
    position: relative;
    z-index: 1;
    width: 100%;
    position: sticky;
    top: calc(40px + 50vh - 65px);
}

/* ─── Tek bant: şerit arka planı soluk koyu kırmızı, düz (yatay) ─── */
.home-ref-strip {
    position: relative;
    width: 120%;
    left: -10%;
    height: 130px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a1a1e;
}

/* Kaydırma içeriği: logolar BANT AÇISINDA akar (şerit içinde kalır, kesilmez) */
.home-ref-scroll-inner {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    min-height: 100%;
    padding: 0 var(--spacing-sm, 1rem);
}

/* Soldan sağa kayma: -50% → 0 (içerik sağa gider, logolar ekranda sağa akar); sonsuz tekrar kesintisiz */
@keyframes homeRefScrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.home-ref-scroll-right {
    animation: homeRefScrollRight 22s linear infinite;
}

/* Logonun üzerine gelindiğinde kayma dursun */
.home-ref-strip:has(.home-ref-logo:hover) .home-ref-scroll-right {
    animation-play-state: paused;
}

/* Logo / metin hücresi */
.home-ref-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    padding: 0 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.25s ease;
}

.home-ref-logo:hover {
    opacity: 0.9;
}

.home-ref-logo img {
    max-height: 56px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.25s ease;
}

/* Sadece logonun üzerine gelindiğinde renklensin */
.home-ref-logo:hover img {
    filter: none;
}

.home-ref-logo-text {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    text-align: center;
    transition: color 0.25s ease;
}

.home-ref-logo:hover .home-ref-logo-text {
    color: var(--color-primary);
}

.home-ref-logo--text .home-ref-logo-text {
    font-size: 0.85rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .home-references-section {
        padding: 0;
    }

    .home-ref-strips {
        top: calc(40px + 50vh - 50px); /* blok 100, merkez 50 */
    }

    .home-ref-strip {
        height: 100px;
        width: 140%;
        left: -20%;
    }

    .home-ref-logo {
        width: 160px;
        padding: 0 1rem;
    }

    .home-ref-logo img {
        max-height: 44px;
        max-width: 120px;
    }

    .home-ref-logo-text {
        font-size: 0.8rem;
    }

    .home-ref-scroll-right { animation-duration: 18s; }
}

@media (max-width: 600px) {
    .home-references-section {
        padding: 0;
    }

    .home-ref-strips {
        top: calc(40px + 50vh - 44px); /* blok 88, merkez 44 */
    }

    .home-ref-strip {
        height: 88px;
        width: 160%;
        left: -30%;
    }

    .home-ref-logo {
        width: 140px;
        padding: 0 0.75rem;
    }

    .home-ref-logo img {
        max-height: 36px;
        max-width: 100px;
    }

    .home-ref-logo-text {
        font-size: 0.7rem;
    }

    .home-ref-scroll-right { animation-duration: 14s; }
}

@media (prefers-reduced-motion: reduce) {
    .home-ref-scroll-right {
        animation: none;
    }
}
