/* ═══════════════════════════════════════════════════════════════════════════
   Pinned Brands Page  (stylingSavedBrands.css)
   Accent: #84cc16 (lime-green) — matches Brand Footprint
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.sb-page {
    background: #060d00;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: -96px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.sb-header {
    background: linear-gradient(140deg, #060d00 0%, #0d1c00 55%, #091400 100%);
    border-bottom: 1px solid rgba(132, 204, 22, 0.18);
    position: relative;
    margin: -60px 0 -110px 0;
}

.sb-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(132, 204, 22, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.sb-header .container {
    min-height: 0;
    margin-top: 0;
    padding-top: 48px;
    padding-bottom: 40px;
}

.sb-header__badge {
    display: inline-flex;
    background: rgba(132, 204, 22, 0.15);
    color: #a3e635;
    border: 1px solid rgba(132, 204, 22, 0.30);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 12px;
    margin-bottom: 10px;
}

.sb-header__body {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.sb-header__title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.sb-header__subtitle {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.50);
    margin: 0;
    max-width: 560px;
    line-height: 1.6;
}

.sb-header__meta {
    flex-shrink: 0;
}

.sb-count-pill {
    display: inline-flex;
    background: rgba(132, 204, 22, 0.10);
    border: 1px solid rgba(132, 204, 22, 0.25);
    color: #84cc16;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.sb-body.container {
    padding-top: 96px;
    padding-bottom: 80px;
}

/* ── Empty / Loading ────────────────────────────────────────────────────── */
.sb-loading,
.sb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    gap: 16px;
    text-align: center;
}

.sb-loading__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(132, 204, 22, 0.20);
    border-top-color: #84cc16;
    border-radius: 50%;
    animation: sb-spin 0.75s linear infinite;
}

@keyframes sb-spin {
    to { transform: rotate(360deg); }
}

.sb-loading p {
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.9rem;
    margin: 0;
}

.sb-empty__icon {
    font-size: 2.8rem;
    color: rgba(132, 204, 22, 0.30);
    line-height: 1;
}

.sb-empty__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.70);
    margin: 0;
}

.sb-empty__sub {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
    max-width: 380px;
    line-height: 1.6;
}

.sb-cta-btn {
    margin-top: 8px;
    padding: 10px 24px;
    background: rgba(132, 204, 22, 0.12);
    border: 1px solid rgba(132, 204, 22, 0.40);
    border-radius: 8px;
    color: #a3e635;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sb-cta-btn:hover {
    background: rgba(132, 204, 22, 0.20);
    border-color: rgba(132, 204, 22, 0.65);
    color: #d9f99d;
}

/* ── Card grid ──────────────────────────────────────────────────────────── */
.sb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.sb-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.sb-card:hover {
    border-color: rgba(132, 204, 22, 0.28);
    box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.08), 0 6px 24px rgba(0, 0, 0, 0.25);
}

.sb-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.sb-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sb-card__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    padding: 4px;
}

.sb-card__logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(132, 204, 22, 0.12);
    border: 1px solid rgba(132, 204, 22, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #84cc16;
    flex-shrink: 0;
}

.sb-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.sb-card__industry {
    display: inline-block;
    background: rgba(132, 204, 22, 0.10);
    border: 1px solid rgba(132, 204, 22, 0.20);
    color: #84cc16;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 9px;
    margin-bottom: 6px;
}

.sb-card__domain {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.15s;
}

.sb-card__domain:hover {
    color: #84cc16;
}

/* ── Color swatches ─────────────────────────────────────────────────────── */
.sb-card__colors {
    display: flex;
    gap: 7px;
}

.sb-card__swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(0, 0, 0, 0.20);
    flex-shrink: 0;
    cursor: default;
}

/* ── Tagline ────────────────────────────────────────────────────────────── */
.sb-card__tagline {
    font-size: 0.80rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin: 0;
    line-height: 1.5;
    border-left: 2px solid rgba(132, 204, 22, 0.25);
    padding-left: 10px;
}

/* ── Value chips ────────────────────────────────────────────────────────── */
.sb-card__values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sb-card__tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 500;
    padding: 3px 10px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.sb-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-card__date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.25);
}

.sb-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sb-card__open-btn {
    padding: 6px 14px;
    background: rgba(132, 204, 22, 0.10);
    border: 1px solid rgba(132, 204, 22, 0.30);
    border-radius: 7px;
    color: #a3e635;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.sb-card__open-btn:hover {
    background: rgba(132, 204, 22, 0.20);
    border-color: rgba(132, 204, 22, 0.60);
    color: #d9f99d;
}

.sb-card__unpin-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.30);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.18s;
}

.sb-card__unpin-btn:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.sb-card__unpin-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Sidebar count badge ─────────────────────────────────────────────────── */
.sidebar-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #84cc16;
    color: #060d00;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 6px;
    line-height: 1;
}

/* ── Light mode overrides ───────────────────────────────────────────────── */
html[data-theme="light"] .sb-page {
    background: #f8fafc;
}

html[data-theme="light"] .sb-header {
    background: linear-gradient(140deg, #f0f9e8 0%, #e8f5d0 55%, #eef7e0 100%);
    border-bottom-color: rgba(101, 163, 13, 0.20);
}

html[data-theme="light"] .sb-header__title { color: #111827; }
html[data-theme="light"] .sb-header__subtitle { color: #6b7280; }
html[data-theme="light"] .sb-header__badge {
    background: rgba(101, 163, 13, 0.10);
    color: #4d7c0f;
    border-color: rgba(101, 163, 13, 0.25);
}

html[data-theme="light"] .sb-count-pill {
    background: rgba(101, 163, 13, 0.08);
    border-color: rgba(101, 163, 13, 0.22);
    color: #65a30d;
}

html[data-theme="light"] .sb-empty__title { color: #374151; }
html[data-theme="light"] .sb-empty__sub   { color: #9ca3af; }
html[data-theme="light"] .sb-empty__icon  { color: rgba(101, 163, 13, 0.35); }
html[data-theme="light"] .sb-loading p    { color: #9ca3af; }

html[data-theme="light"] .sb-loading__spinner {
    border-color: rgba(101, 163, 13, 0.20);
    border-top-color: #65a30d;
}

html[data-theme="light"] .sb-cta-btn {
    background: rgba(101, 163, 13, 0.08);
    border-color: rgba(101, 163, 13, 0.35);
    color: #4d7c0f;
}

html[data-theme="light"] .sb-cta-btn:hover {
    background: rgba(101, 163, 13, 0.15);
    border-color: rgba(101, 163, 13, 0.60);
    color: #3a5c09;
}

html[data-theme="light"] .sb-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .sb-card:hover {
    border-color: rgba(101, 163, 13, 0.30);
    box-shadow: 0 0 0 1px rgba(101, 163, 13, 0.10), 0 6px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .sb-card__name    { color: #111827; }
html[data-theme="light"] .sb-card__domain  { color: #9ca3af; }
html[data-theme="light"] .sb-card__tagline { color: #6b7280; border-left-color: rgba(101, 163, 13, 0.30); }
html[data-theme="light"] .sb-card__date    { color: #d1d5db; }
html[data-theme="light"] .sb-card__footer  { border-top-color: rgba(0, 0, 0, 0.06); }

html[data-theme="light"] .sb-card__industry {
    background: rgba(101, 163, 13, 0.08);
    border-color: rgba(101, 163, 13, 0.18);
    color: #65a30d;
}

html[data-theme="light"] .sb-card__tag {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

html[data-theme="light"] .sb-card__logo-fallback {
    background: rgba(101, 163, 13, 0.08);
    border-color: rgba(101, 163, 13, 0.20);
    color: #65a30d;
}

html[data-theme="light"] .sb-card__open-btn {
    background: rgba(101, 163, 13, 0.08);
    border-color: rgba(101, 163, 13, 0.28);
    color: #4d7c0f;
}

html[data-theme="light"] .sb-card__open-btn:hover {
    background: rgba(101, 163, 13, 0.15);
    border-color: rgba(101, 163, 13, 0.55);
    color: #3a5c09;
}

html[data-theme="light"] .sb-card__unpin-btn {
    border-color: #e5e7eb;
    color: #d1d5db;
}

html[data-theme="light"] .sb-card__unpin-btn:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.25);
    color: #dc2626;
}

html[data-theme="light"] .sidebar-count-badge {
    background: #65a30d;
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Pinned Influencers — cyan/Scout color overrides (.sb-page--influencers)
   Accent: #06b6d4 (cyan) — matches Scout / Influencer Finder
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Dark mode (default) ─────────────────────────────────────────────────── */
.sb-page--influencers {
    background: #0a0e1a;
}

.sb-page--influencers .sb-header {
    background: linear-gradient(140deg, #060d1a 0%, #0a1628 55%, #071220 100%);
    border-bottom-color: rgba(6, 182, 212, 0.18);
}

.sb-page--influencers .sb-header::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 65%);
}

.sb-page--influencers .sb-header__badge {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.30);
}

.sb-page--influencers .sb-count-pill {
    background: rgba(6, 182, 212, 0.10);
    border-color: rgba(6, 182, 212, 0.25);
    color: #06b6d4;
}

.sb-page--influencers .sb-loading__spinner {
    border-color: rgba(6, 182, 212, 0.20);
    border-top-color: #06b6d4;
}

.sb-page--influencers .sb-empty__icon {
    color: rgba(6, 182, 212, 0.30);
}

.sb-page--influencers .sb-cta-btn {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.40);
    color: #67e8f9;
}

.sb-page--influencers .sb-cta-btn:hover {
    background: rgba(6, 182, 212, 0.22);
    border-color: rgba(6, 182, 212, 0.65);
    color: #a5f3fc;
}

.sb-page--influencers .sb-card:hover {
    border-color: rgba(6, 182, 212, 0.28);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08), 0 6px 24px rgba(0, 0, 0, 0.25);
}

.sb-page--influencers .sb-card__logo-fallback {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.22);
    color: #06b6d4;
}

.sb-page--influencers .sb-card__tagline {
    border-left-color: rgba(6, 182, 212, 0.25);
}

.sb-page--influencers .sb-card__domain:hover {
    color: #06b6d4;
}

.sb-page--influencers .sb-card__open-btn {
    background: rgba(6, 182, 212, 0.10);
    border-color: rgba(6, 182, 212, 0.30);
    color: #67e8f9;
}

.sb-page--influencers .sb-card__open-btn:hover {
    background: rgba(6, 182, 212, 0.20);
    border-color: rgba(6, 182, 212, 0.60);
    color: #a5f3fc;
}

/* ── Light mode overrides ────────────────────────────────────────────────── */
html[data-theme="light"] .sb-page--influencers {
    background: #f8fafc;
}

html[data-theme="light"] .sb-page--influencers .sb-header {
    background: linear-gradient(140deg, #f0fdff 0%, #e0f9ff 55%, #ecfeff 100%);
    border-bottom-color: rgba(6, 182, 212, 0.20);
}

html[data-theme="light"] .sb-page--influencers .sb-header::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 65%);
}

html[data-theme="light"] .sb-page--influencers .sb-header__badge {
    background: rgba(6, 182, 212, 0.10);
    color: #0e7490;
    border-color: rgba(6, 182, 212, 0.25);
}

html[data-theme="light"] .sb-page--influencers .sb-count-pill {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.22);
    color: #0891b2;
}

html[data-theme="light"] .sb-page--influencers .sb-empty__icon {
    color: rgba(6, 182, 212, 0.35);
}

html[data-theme="light"] .sb-page--influencers .sb-loading__spinner {
    border-color: rgba(6, 182, 212, 0.20);
    border-top-color: #0891b2;
}

html[data-theme="light"] .sb-page--influencers .sb-cta-btn {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.35);
    color: #0e7490;
}

html[data-theme="light"] .sb-page--influencers .sb-cta-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.60);
    color: #0c4a6e;
}

html[data-theme="light"] .sb-page--influencers .sb-card:hover {
    border-color: rgba(6, 182, 212, 0.30);
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.10), 0 6px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .sb-page--influencers .sb-card__logo-fallback {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.20);
    color: #0891b2;
}

html[data-theme="light"] .sb-page--influencers .sb-card__tagline {
    border-left-color: rgba(6, 182, 212, 0.30);
}

html[data-theme="light"] .sb-page--influencers .sb-card__domain:hover {
    color: #0891b2;
}

html[data-theme="light"] .sb-page--influencers .sb-card__open-btn {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.28);
    color: #0e7490;
}

html[data-theme="light"] .sb-page--influencers .sb-card__open-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.55);
    color: #0c4a6e;
}
