/**
 * SNAPSMACK - Collection / Collections Page Styles
 *
 * Loaded on collection.php (per-collection landing) and collections.php
 * (collections index). Stock styling for the grid, hero, sort toggle.
 *
 * Skin's style.css loads AFTER this file. Override decoration freely.
 */

/*
 * SNAPSMACK_EOF_HEADER
 * Last non-empty line MUST be: slash-star, space, five equals, space,
 * 'SNAPSMACK EOF', space, five equals, space, star-slash.
 */


/* ─── COLLECTION LANDING (collection.php) ─────────────────────────────────── */
.collection-canvas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.collection-description {
    max-width: 720px;
    margin: 0 auto 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dim, #aaa);
    text-align: center;
}

.collection-hero {
    margin: 30px 0 40px;
    text-align: center;
}
.collection-hero-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
}
.collection-tile {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}
.collection-tile:hover { opacity: 0.85; }
.collection-tile img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.collection-tile-title {
    display: block;
    margin-top: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-dim, #999);
}
.collection-tile-caption {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-dim, #999);
    opacity: 0.7;
    font-style: italic;
}

/* ─── COLLECTIONS INDEX (collections.php) ─────────────────────────────────── */
.collections-canvas {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.collections-sort-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 20px 0 30px;
}
.collections-sort-toggle .alt-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.75em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    opacity: 0.45;
    border-radius: 2px;
    transition: opacity 0.15s;
}
.collections-sort-toggle .alt-btn:hover     { opacity: 0.85; }
.collections-sort-toggle .alt-btn--active   { opacity: 1; }

/* SERIES LIST (Noah Grey "Series Collections" geometry): one row per
   collection — framed thumbnail left, centred info panel right. Themed with
   currentColor + neutral translucent greys so it reads on BOTH high-key (light)
   and dark skins, since skins don't share a common --text-dim/--bg variable. */
.collections-series {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.series-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.series-thumb {
    flex: 0 0 300px;
    width: 300px;
    padding: 5px;
    border: 1px solid rgba(128,128,128,0.55);
    background: rgba(128,128,128,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}
.series-thumb img { display: block; width: 100%; height: auto; }
.series-thumb-empty {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(128,128,128,0.12);
}

.series-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 18px 24px;
    border: 1px solid rgba(128,128,128,0.55);
    color: inherit;
    background: transparent;
}

.series-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    letter-spacing: 0.12em;
    color: inherit;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 0.15s;
}
.series-row:hover .series-title { border-bottom-color: currentColor; }

.series-count {
    font-size: 1.32rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.85;
}
.series-posted {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.5;
}

@media (max-width: 560px) {
    .series-row   { flex-direction: column; }
    .series-thumb { flex-basis: auto; width: 100%; }
}
/* ===== SNAPSMACK EOF ===== */
