﻿/* ==========================================================
   Brands Page
========================================================== */

.site-brands-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* ==========================================================
   Hero
========================================================== */

.site-brands-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0;
    background: linear-gradient(135deg,#0f172a 0%,#1e3a8a 100%);
    color: #fff;
}

    .site-brands-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 40%);
    }

    .site-brands-hero .container {
        position: relative;
        z-index: 2;
    }

.site-brands-hero__content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-brands-hero__icon {
    width: 90px;
    height: 90px;
    flex: 0 0 90px;
    border-radius: 24px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
}

.site-brands-hero__eyebrow {
    display: inline-block;
    margin-bottom: .75rem;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .12em;
    opacity: .75;
}

.site-brands-hero__title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.site-brands-hero__description {
    margin: 1rem 0 0;
    max-width: 720px;
    color: rgba(255,255,255,.82);
    line-height: 1.8;
}

/* ==========================================================
   Content
========================================================== */

.site-brands-content {
    padding: 3rem 0 4rem;
}

.site-brands-filter-card,
.site-brands-results {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 35px rgba(15,23,42,.05);
}

.site-brands-filter-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.site-brands-results {
    padding: 2rem;
}

/* ==========================================================
   Titles
========================================================== */

.site-brands-filter-card__header,
.site-brands-results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.site-brands-section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #2563eb;
    font-weight: 700;
    margin-bottom: .35rem;
}

.site-brands-section-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #111827;
}

.site-brands-result-count {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #eff6ff;
    color: #2563eb;
    padding: .8rem 1rem;
    border-radius: 12px;
    font-weight: 600;
}

/* ==========================================================
   Search
========================================================== */

.site-brands-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.site-brands-search__field {
    position: relative;
    flex: 1;
}

.site-brands-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.site-brands-search__input {
    height: 56px;
    border-radius: 14px;
    padding-left: 52px;
    padding-right: 52px;
    border: 1px solid #dbe3ef;
}

    .site-brands-search__input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 .2rem rgba(37,99,235,.12);
    }

.site-brands-search__button {
    height: 56px;
    padding: 0 1.8rem;
    border-radius: 14px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

    .site-brands-search__button:hover {
        background: #1d4ed8;
        color: #fff;
    }

.site-brands-search__clear {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.site-brands-clear-filter {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================
   Alphabet
========================================================== */

.site-brands-alphabet-heading {
    margin-bottom: 1rem;
}

.site-brands-alphabet-heading__title {
    display: block;
    font-weight: 700;
}

.site-brands-alphabet-heading__description {
    font-size: .9rem;
    color: #64748b;
}

.site-brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.site-brands-letter {
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe3ef;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: .2s;
}

    .site-brands-letter:hover {
        border-color: #2563eb;
        color: #2563eb;
    }

    .site-brands-letter.is-active {
        background: #2563eb;
        color: #fff;
        border-color: #2563eb;
    }

/* ==========================================================
   Grid
========================================================== */

.site-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 1.5rem;
}

.site-brand-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    transition: .25s;
    overflow: hidden;
    background: #fff;
}

    .site-brand-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 36px rgba(15,23,42,.08);
    }

.site-brand-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.site-brand-card__image-wrap {
    height: 140px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.site-brand-card__image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-brand-card__content {
    border-top: 1px solid #eef2f7;
    padding: 1.25rem;
}

.site-brand-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    min-height: 48px;
    margin-bottom: 1rem;
}

.site-brand-card__action {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #2563eb;
    font-weight: 600;
}

/* ==========================================================
   Empty
========================================================== */

.site-brands-empty {
    padding: 5rem 2rem;
    text-align: center;
}

.site-brands-empty__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.site-brands-empty__title {
    font-weight: 700;
}

.site-brands-empty__description {
    max-width: 560px;
    margin: 1rem auto 2rem;
    color: #64748b;
}

/* ==========================================================
   Pagination
========================================================== */

.site-brands-pagination {
    margin-top: 2.5rem;
}

.site-pagination {
    justify-content: center;
}

    .site-pagination .page-link {
        border-radius: 10px !important;
        margin: 0 .15rem;
    }

/* ==========================================================
   Responsive
========================================================== */

@media (max-width:991px) {

    .site-brands-search {
        flex-direction: column;
    }

    .site-brands-filter-card__header,
    .site-brands-results__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-brands-hero__content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width:767px) {

    .site-brands-content {
        padding: 2rem 0;
    }

    .site-brands-filter-card,
    .site-brands-results {
        padding: 1.25rem;
    }

    .site-brands-hero {
        padding: 3rem 0;
    }

    .site-brands-hero__title {
        font-size: 2rem;
    }

    .site-brands-alphabet {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .5rem;
    }

        .site-brands-alphabet::-webkit-scrollbar {
            height: 6px;
        }
}
