/**
 * Referanslar sayfası — 5’li logo duvarı
 */

.references-page {
    padding: 0 0 72px;
}

.references-page .references-page__container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.references-page__topbar {
    grid-template-columns: 1fr;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.references-page__topbar-center {
    width: 100%;
    justify-self: stretch;
    text-align: center;
}

.references-page__lead {
    margin: 12px auto 0;
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-light, #64748b);
}

.references-page__main {
    padding-top: 4px;
}

.references-hub__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.references-hub__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 220px;
    height: 100%;
    padding: 28px 20px 22px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

a.references-hub__card:hover,
a.references-hub__card:focus-visible {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.references-hub__card:focus-visible {
    outline: 2px solid var(--primary-color, #0f172a);
    outline-offset: 2px;
}

.references-hub__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 128px;
    flex: 1;
}

.references-hub__logo {
    display: block;
    max-width: 92%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.2s ease;
}

.references-hub__card:hover .references-hub__logo,
.references-hub__card:focus-visible .references-hub__logo {
    transform: scale(1.03);
}

.references-hub__caption {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-light, #64748b);
    line-height: 1.35;
}

.references-hub__card.is-text {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.references-hub__name {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0 4px;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    color: var(--primary-color, #0f172a);
    line-height: 1.35;
    word-break: break-word;
}

.references-hub__empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

.references-hub__empty i {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
    color: #94a3b8;
}

.references-hub__empty p {
    margin: 0 0 20px;
    color: #64748b;
}

@media (max-width: 1199px) {
    .references-hub__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 899px) {
    .references-page .references-page__container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .references-hub__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .references-hub__card {
        min-height: 180px;
        padding: 20px 14px 16px;
    }

    .references-hub__visual {
        min-height: 96px;
    }

    .references-hub__logo {
        max-height: 96px;
    }
}

@media (max-width: 599px) {
    .references-page .references-page__container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .references-hub__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .references-hub__card {
        min-height: 156px;
        padding: 16px 12px 14px;
    }

    .references-hub__visual {
        min-height: 80px;
    }

    .references-hub__logo {
        max-height: 80px;
    }

    .references-hub__name {
        font-size: 0.95rem;
    }
}
