/* SB Resolver v2 — Front-end styles */

#sbr-my-scripts,
#sbr-library-grid {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    max-width: 900px;
}

.sbr-script-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.sbr-script-card-info {
    flex: 1;
    min-width: 200px;
}

.sbr-script-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}

.sbr-script-card-meta {
    font-size: 0.8rem;
    color: #64748b;
}

.sbr-script-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.sbr-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.sbr-btn:hover { opacity: 0.85; }
.sbr-btn-primary   { background: #7c3aed; color: #fff; }
.sbr-btn-secondary { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.sbr-btn-sm        { padding: 6px 13px; font-size: 0.8rem; }

/* Fill status badges */
.sbr-fill-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.sbr-fill-filled  { background: #dcfce7; color: #166534; }
.sbr-fill-pending { background: #fef9c3; color: #854d0e; }
.sbr-fill-failed  { background: #fee2e2; color: #991b1b; }

/* Library grid */
.sbr-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.sbr-library-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
}

.sbr-library-card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}

.sbr-library-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.sbr-library-card-price {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}

.sbr-library-card-price s {
    color: #94a3b8;
    margin-right: 5px;
}

.sbr-library-card-price strong {
    color: #7c3aed;
}

/* Empty/loading states */
.sbr-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.sbr-loading {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
}

/* Category colour accents */
.sbr-cat-dkq { border-left: 4px solid #9b59b6; }
.sbr-cat-fia { border-left: 4px solid #c9a84c; }
.sbr-cat-ys  { border-left: 4px solid #00bcd4; }
.sbr-cat-gus { border-left: 4px solid #c0392b; }
