/* Sorttie Press Bank — Public Styles */

/* ---- Brand colors ---- */
/* Primary:  #3c3c78  (azul-marinho — texto SORTTIE) */

/* ---- Back link ---- */
.spb-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3c3c78;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 20px;
}
.spb-back a:hover { text-decoration: underline; }

/* ---- Clients grid ---- */
.spb-clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin: 24px 0;
}
.spb-client-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    background: #fff;
}
.spb-client-card:hover {
    box-shadow: 0 8px 24px rgba(60,60,120,.15);
    transform: translateY(-3px);
}
.spb-client-cover {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #eeeef5;
}
.spb-client-name {
    font-size: 16px;
    font-weight: 700;
    color: #3c3c78;
    padding: 14px 16px 4px;
}
.spb-client-desc {
    font-size: 13px;
    color: #6b7280;
    padding: 0 16px 14px;
}

/* ---- Gallery header ---- */
.spb-gallery-header { margin-bottom: 20px; }
.spb-client-title { font-size: 26px; margin: 0 0 6px; color: #3c3c78; }

/* ---- Filter bar ---- */
.spb-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.spb-filter {
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all .15s;
}
.spb-filter:hover, .spb-filter.active {
    background: #3c3c78;
    color: #fff;
    border-color: #3c3c78;
}
.spb-search {
    margin-left: auto;
    padding: 6px 14px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    min-width: 180px;
    outline: none;
}
.spb-search:focus { border-color: #3c3c78; box-shadow: 0 0 0 2px rgba(60,60,120,.12); }

/* ---- Media grid ---- */
.spb-grid {
    display: grid;
    gap: 20px;
}
.spb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.spb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.spb-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .spb-cols-3, .spb-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .spb-cols-2, .spb-cols-3, .spb-cols-4 { grid-template-columns: 1fr; }
    .spb-filter-bar { flex-direction: column; align-items: flex-start; }
    .spb-search { margin-left: 0; width: 100%; }
}

.spb-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s;
}
.spb-item:hover { box-shadow: 0 6px 20px rgba(60,60,120,.12); }

.spb-item-thumb {
    position: relative;
    padding-top: 66%;
    background: #f3f4f6;
    overflow: hidden;
}
.spb-item-thumb img,
.spb-item-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spb-video-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
}
.spb-play-icon {
    font-size: 42px;
    color: rgba(255,255,255,.85);
    z-index: 2;
    position: absolute;
}
.spb-video-preview video { opacity: .4; }

.spb-item-info { padding: 14px; }
.spb-item-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3c3c78;
}
.spb-item-desc { font-size: 12px; color: #6b7280; margin: 0 0 8px; }
.spb-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}
.spb-downloads-count { color: #3c3c78; font-weight: 500; }

.spb-btn-download {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    background: #3c3c78;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}
.spb-btn-download:hover { background: #2d2d5c; color: #fff !important; }

/* Hidden by filter */
.spb-item.spb-hidden { display: none; }

/* Empty state */
.spb-empty {
    text-align: center;
    color: #6b7280;
    padding: 40px 0;
    font-size: 15px;
}
