/* ============================================================================
   collections.css — Binder list page + shared binder surface styles
   ----------------------------------------------------------------------------
   Page-specific CSS for /collections and /binders/<id>.
   Uses DS alias tokens only (--bg/--surface/--text/--brand…). No hex. No :root.
   Shared classes used by both pages live here; binder-only classes in binder.css.
============================================================================ */

/* ── Page container ────────────────────────────────────────────────────────── */
.collections-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-5);
}

/* ── Page header (H1 + CTA) ────────────────────────────────────────────────── */
.collections-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
    gap: var(--space-5);
}

.collections-header h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 var(--space-1) 0;
    line-height: var(--line-tight);
}

.collections-header p {
    color: var(--text-muted);
    margin: 0;
}

/* ── Grid of collection cards ──────────────────────────────────────────────── */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* ── Collection card (.card--interactive pattern) ──────────────────────────── */
.collection-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: transform var(--transition-base), box-shadow var(--transition-base),
                border-color var(--transition-base);
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

/* ── Card internals ────────────────────────────────────────────────────────── */
.card-info .card-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-2) 0;
    line-height: var(--line-tight);
}

.card-info .card-default {
    display: inline-flex;
    align-items: center;
    padding: 0.15em 0.6em;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--color-success-soft);
    color: var(--green-300);
    margin-left: var(--space-2);
    vertical-align: middle;
}

.card-info .card-description {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-normal);
    margin-bottom: var(--space-4);
}

/* ── Stats mini-grid ────────────────────────────────────────────────────────── */
.card-info .card-stats {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.card-info .card-stats .stat {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.card-info .card-stats .stat .material-symbols-outlined {
    font-size: 1.1em;
    color: var(--brand);
}

/* ── Binder tags inside collection card ────────────────────────────────────── */
.card-info .card-binders {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.card-info .card-binders strong {
    color: var(--text);
}

.binder-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

/* .binder-tag reuses background-color from inline style (binder.color) */
.binder-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.15em 0.6em;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.4;
}

.binder-tag .material-symbols-outlined {
    font-size: 0.9em;
}

/* ── Card actions footer ────────────────────────────────────────────────────── */
.card-info .card-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}
