/* inked/assets/css/company-v2/listing.css */
/**
 * Company Directory v2 — Listing Page Layout
 * Hero section, section headers, grid, featured section,
 * load-more, SEO block, responsive breakpoints.
 */

.company-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    margin: 0;
}

.company-subtitle strong {
    color: var(--color-brand-accent, #E8C547);
    font-weight: 600;
}

/* ======================================================
   SECTION HEADERS
   ====================================================== */

.company-section-header {
    max-width: var(--container-max, 1400px);
    margin: 32px auto 16px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-section-label {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    font-weight: var(--font-weight-bold, 700);
    letter-spacing: var(--letter-spacing-caps, 0.1em);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.company-section-label--featured {
    color: var(--color-brand-accent);
}

.company-section-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition-fast, 150ms);
}

.company-section-info:hover {
    border-color: var(--color-brand-accent, #E8C547);
    color: var(--color-brand-accent, #E8C547);
}

.company-section-divider {
    flex: 1;
    height: 1px;
    background: var(--color-border, #333);
}

/* ======================================================
   FEATURED PARTNERS GRID
   ====================================================== */

.company-featured-grid {
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(var(--company-grid-columns, 3), minmax(0, 1fr));
    gap: var(--company-grid-gap, 16px);
}

/* ======================================================
   ALL BRANDS GRID
   ====================================================== */

.company-grid {
    max-width: var(--container-max, 1400px);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(var(--company-grid-columns, 3), minmax(0, 1fr));
    gap: var(--company-grid-gap, 16px);
}

/* ======================================================
   INFINITE SCROLL SENTINEL + SPINNER
   (replaces the old "Load More" button)
   ====================================================== */

/* Sentinel is a zero-height IntersectionObserver target; spinner shows only
   while the next page is fetching. */
.company-scroll-sentinel {
    width: 100%;
    height: 1px;
}

.company-scroll-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px 24px 64px;
}

.company-scroll-spinner .spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border, rgba(255, 255, 255, 0.1));
    border-top-color: var(--gold, #c8a45e);
    border-radius: 50%;
    animation: company-spin 0.6s linear infinite;
}

@keyframes company-spin {
    to { transform: rotate(360deg); }
}

/* ======================================================
   SEO TEXT SECTION
   ====================================================== */

.company-seo-section {
    max-width: var(--container-max, 1400px);
    margin: 48px auto 0;
    padding: 32px 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.company-seo-section h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-weight-normal);
    color: var(--color-text);
    margin: 0 0 16px;
}

.company-seo-section p {
    margin: 0 0 12px;
}

/* ======================================================
   RESPONSIVE BREAKPOINTS
   ====================================================== */

/* Mobile — 1 column */
@media (max-width: 480px) {
    .company-featured-grid,
    .company-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .company-section-header {
        padding: 0 16px;
        margin: 24px auto 12px;
    }

    .company-seo-section {
        padding: 24px 16px;
    }
}

/* Tablet — 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .company-featured-grid {
        grid-template-columns: 1fr;
    }

    .company-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Small desktop — 2 columns featured, 3 columns grid */
@media (min-width: 769px) and (max-width: 1023px) {
    .company-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop — 3 columns */
@media (min-width: 1024px) {
    .company-featured-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .company-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Wide desktop — 4 columns for all brands */
@media (min-width: 1400px) {
    .company-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
