/**
 * Collections index page (public/collections.php).
 *
 * Same situation as locations.php was before it existed: no dedicated
 * "Collections index" frame exists anywhere in the Figma "02 - Public
 * Website" file (confirmed the same way - enumerating every top-level
 * page frame in the file). The only "collection" content is the single-
 * collection template (collection-template-waterfront, routed by slug)
 * and its own internal "Other Collections" cross-link section - no
 * separate overview page for browsing all collections at once.
 *
 * Built as the same fallback utility page pattern as locations.css/
 * locations.php: reuses the homepage's Curated Collections card
 * treatment (tall image, bottom-gradient overlay, title) in its own file
 * rather than linking locations.css/homepage.css directly, arranged as a
 * grid sized for however many real collections exist (currently 4 - see
 * database/seed-templates.php) rather than a fixed column count assuming
 * a specific total.
 */

.coll-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 96px 80px 64px;
    text-align: center;
    background: var(--color-ivory);
}

.coll-hero__kicker {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--color-champagne-gold);
    margin: 0;
}

.coll-hero__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 42px;
    color: var(--color-primary-green);
    margin: 0;
}

.coll-hero__desc {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #717171;
    max-width: 640px;
    margin: 0;
}

.coll-grid-section {
    padding: 80px;
}

.coll-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.coll-empty-state {
    font-family: var(--font-body);
    color: #717171;
    text-align: center;
}

.coll-card {
    position: relative;
    height: 340px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    text-decoration: none;
}

.coll-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease-out;
}

.coll-card:hover img {
    transform: scale(1.04);
}

.coll-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

.coll-card__title {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 24px;
    color: var(--color-white);
    margin: 0 0 6px;
}

.coll-card__count {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-white);
    opacity: 0.85;
    margin: 0;
}

@media (max-width: 1024px) {
    .coll-hero,
    .coll-grid-section {
        padding-left: 24px;
        padding-right: 24px;
    }

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

@media (max-width: 640px) {
    .coll-hero__title {
        font-size: 30px;
    }

    .coll-grid {
        grid-template-columns: 1fr;
    }
}
