/* ══════════════════════════════════════════════════════════════
   Creative Soul Streetstyle — Frontend
   ══════════════════════════════════════════════════════════════ */

.cs-ss-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.cs-ss-intro {
    padding: 24px 0 10px;
}

.cs-ss-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #777;
}

.cs-ss-title {
    margin: 0;
    font-size: clamp(28px, 5vw, 54px);
    line-height: .98;
    font-weight: 300;
    color: #111;
}

.cs-ss-subtitle {
    max-width: 760px;
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* ── Barra de filtros ───────────────────────────────────────── */

.cs-ss-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 24px;
}

.cs-ss-filter-select-wrap {
    position: relative;
}

.cs-ss-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px 38px 10px 14px;
    font-size: 14px;
    color: #222;
    cursor: pointer;
    min-width: 160px;
    transition: border-color .2s;
}

.cs-ss-filter-select:hover,
.cs-ss-filter-select:focus {
    border-color: #222;
    outline: none;
}

.cs-ss-clear-filters {
    background: none;
    border: 1px solid #999;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}

.cs-ss-clear-filters:hover {
    color: #222;
    border-color: #222;
}

.cs-ss-results-count {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* ── Grid / Tiled layout (JS-positioned, estilo Modula) ─────── */

.cs-ss-grid {
    position: relative;
    min-height: 100px;
}

.cs-ss-grid-item {
    position: absolute;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: inherit;
    font: inherit;
}

.cs-ss-grid-item:focus {
    outline: none;
}

.cs-ss-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .4s ease, opacity .3s;
}

.cs-ss-grid-item:hover img {
    transform: scale(1.03);
}

/* ── Fade transition on filter ──────────────────────────────── */

.cs-ss-grid.cs-ss-loading {
    opacity: .3;
    pointer-events: none;
    transition: opacity .2s;
}

.cs-ss-grid:not(.cs-ss-loading) {
    opacity: 1;
    transition: opacity .35s;
}

/* ── Empty state ────────────────────────────────────────────── */

.cs-ss-empty {
    position: relative;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 16px;
    font-style: italic;
}

/* ── Pagination ─────────────────────────────────────────────── */

.cs-ss-pagination-wrap {
    padding: 32px 0 48px;
}

.cs-ss-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.cs-ss-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    background: #fff;
    padding: 0 8px;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.cs-ss-page-btn:hover {
    border-color: #222;
    color: #000;
}

.cs-ss-page-btn.cs-ss-page-active {
    background: #222;
    color: #fff;
    border-color: #222;
    pointer-events: none;
}

.cs-ss-page-prev,
.cs-ss-page-next {
    font-size: 20px;
    font-weight: 300;
}

.cs-ss-page-dots {
    padding: 0 4px;
    color: #999;
}

/* ── Shortcode latest ────────────────────────────────────────── */

.cs-ss-latest-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Botón FILTROS (mobile toggle) ──────────────────────────── */

.cs-ss-filters-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s;
    appearance: none;
    -webkit-appearance: none;
}

.cs-ss-filters-toggle svg {
    flex-shrink: 0;
}

.cs-ss-filters-toggle:hover {
    border-color: #222;
}

.cs-ss-filters-toggle.cs-ss-toggle-active {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* ── Responsive (solo filtros; el grid lo maneja JS) ────────── */

@media (max-width: 768px) {
    .cs-ss-filters-toggle {
        display: inline-flex;
    }

    .cs-ss-filters-bar {
        display: none;
        gap: 8px;
    }

    .cs-ss-filters-bar.cs-ss-filters-open {
        display: flex;
    }

    .cs-ss-filter-select {
        min-width: 0;
        flex: 1 1 calc(50% - 4px);
        font-size: 13px;
        padding: 8px 32px 8px 10px;
    }
}

@media (max-width: 480px) {
    .cs-ss-filter-select {
        flex: 1 1 100%;
    }
}
