/* ── TCIS Brands Slider — Public CSS ── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Section wrapper ── */
.tcb-brands-section {
    padding: 64px 48px;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* ── Section title ── */
.tcb-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: 2px;
    color: #0A0A0F;
    margin-bottom: 36px;
    line-height: 1.1;
}

/* ── Track (overflow + fade edges) ── */
.tcb-brands-track {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.tcb-brands-track::before,
.tcb-brands-track::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.tcb-brands-track::before {
    left: 0;
    background: linear-gradient(to right, var(--tcb-bg, #F9F8F6), transparent);
}

.tcb-brands-track::after {
    right: 0;
    background: linear-gradient(to left, var(--tcb-bg, #F9F8F6), transparent);
}

/* ── Scrolling strip ── */
.tcb-brands-inner {
    display: flex;
    gap: 48px;
    align-items: center;
    white-space: nowrap;
    animation: tcb-scroll-brands 20s linear infinite;
    width: max-content;
}

.tcb-brands-inner.tcb-pause-hover:hover {
    animation-play-state: paused;
}

@keyframes tcb-scroll-brands {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Individual logo pill ── */
.tcb-brand-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    color: #8A8A9A;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: #FFFFFF;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    text-decoration: none;
    flex-shrink: 0;
    cursor: default;
}

a.tcb-brand-logo {
    cursor: pointer;
}

.tcb-brand-logo:hover {
    color: #0A0A0F;
    border-color: #0A0A0F;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-decoration: none;
}

/* ── Empty state (admin only) ── */
.tcb-empty {
    padding: 20px 24px;
    background: #f9f9f9;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    color: #555;
    font-size: 14px;
}

.tcb-empty a {
    color: #0276f0;
    font-weight: 600;
    text-decoration: none;
}

.tcb-empty a:hover { text-decoration: underline; }

/* ── Scroll-reveal (optionnel) ── */
.tcb-brands-section.tcb-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tcb-brands-section.tcb-reveal.tcb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tcb-brands-section {
        padding: 48px 20px;
    }

    .tcb-brands-track::before,
    .tcb-brands-track::after {
        width: 40px;
    }

    .tcb-brands-inner {
        gap: 28px;
    }

    .tcb-brand-logo {
        font-size: 18px;
        padding: 8px 14px;
    }
}
