/* ============================================================
   PeptideCO — Peptide Cheatsheet Styles
   Dark theme, category colour coding, slide-in detail panel
   ============================================================ */

/* ── Page reset & base ── */
.cs-page {
    background: #0a0e1a;
    min-height: 100vh;
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Hero header ── */
.cs-hero {
    padding: 48px 40px 32px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.cs-hero h1 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.cs-hero h1 span { color: #00d4a8; }
.cs-hero p {
    font-size: 15px;
    color: #64748b;
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 0;
}
.cs-stacking-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00d4a8;
    color: #0a0e1a;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.cs-stacking-btn:hover {
    background: #00bfa0;
    color: #0a0e1a;
    transform: translateY(-1px);
}

/* ── Search bar ── */
.cs-search-wrap { position: relative; max-width: 440px; }
.cs-search-wrap .cs-search-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #475569;
    font-size: 15px;
}
.cs-search {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: #131828;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.cs-search::placeholder { color: #475569; }
.cs-search:focus { border-color: #00d4a8; }

/* ── Category filter pills ── */
.cs-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #94a3b8;
    transition: all .15s;
    letter-spacing: .3px;
}
.cs-pill:hover { border-color: #00d4a8; color: #00d4a8; }
.cs-pill.active {
    background: #00d4a8;
    border-color: #00d4a8;
    color: #0a0e1a;
}
.cs-pill .pill-count {
    background: rgba(0,0,0,.2);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}
.cs-pill.active .pill-count { background: rgba(0,0,0,.25); }

/* ── Results count ── */
.cs-results-count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #475569;
}

/* ══════════════════════════════════════════
   CATEGORY COLOUR SYSTEM
   ══════════════════════════════════════════
   healing          → teal/cyan   #00d4a8
   glp-incretin     → purple      #a855f7
   growth-hormone   → cyan-blue   #22d3ee
   other            → amber       #f59e0b
   bioregulator     → coral/pink  #f472b6
   peptide-related  → blue        #60a5fa
   ══════════════════════════════════════════ */

/* Category badge */
.cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.cat-healing          { background: rgba(0,212,168,.15);  color: #00d4a8;  border: 1px solid rgba(0,212,168,.3); }
.cat-glp-incretin     { background: rgba(168,85,247,.15); color: #a855f7;  border: 1px solid rgba(168,85,247,.3); }
.cat-growth-hormone   { background: rgba(34,211,238,.15); color: #22d3ee;  border: 1px solid rgba(34,211,238,.3); }
.cat-other            { background: rgba(245,158,11,.15); color: #f59e0b;  border: 1px solid rgba(245,158,11,.3); }
.cat-bioregulator     { background: rgba(244,114,182,.15);color: #f472b6;  border: 1px solid rgba(244,114,182,.3); }
.cat-peptide-related  { background: rgba(96,165,250,.15); color: #60a5fa;  border: 1px solid rgba(96,165,250,.3); }

/* Peptide name colours by category */
.name-healing         { color: #00d4a8; }
.name-glp-incretin    { color: #a855f7; }
.name-growth-hormone  { color: #22d3ee; }
.name-other           { color: #f59e0b; }
.name-bioregulator    { color: #f472b6; }
.name-peptide-related { color: #60a5fa; }

/* ── Peptide card ── */
.cs-card {
    background: #131828;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.cs-card:hover {
    border-color: rgba(0,212,168,.4);
    background: #161e30;
    transform: translateY(-2px);
}
.cs-card.active-card {
    border-color: #00d4a8;
    background: #0d1a28;
}
.cs-card-arrow {
    position: absolute;
    top: 16px; right: 16px;
    color: #334155;
    font-size: 14px;
    transition: color .15s, transform .15s;
}
.cs-card:hover .cs-card-arrow { color: #00d4a8; transform: translateX(2px); }

/* Card header */
.cs-card-header { margin-bottom: 10px; }
.cs-card-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 8px;
    margin-bottom: 2px;
    letter-spacing: -.3px;
}
.cs-card-subtitle { font-size: 11px; color: #475569; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }

/* Tags row */
.cs-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.cs-tag {
    font-size: 11px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 2px 9px;
    color: #64748b;
    background: rgba(255,255,255,.04);
}

/* Card meta */
.cs-card-divider { border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 10px 0; }
.cs-meta { display: flex; flex-direction: column; gap: 5px; }
.cs-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #64748b;
}
.cs-meta-item i { font-size: 12px; color: #334155; }

/* ══════════════════════════════════════════
   DETAIL PANEL (slide-in from right)
   ══════════════════════════════════════════ */
.cs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.cs-overlay.open { opacity: 1; pointer-events: all; }

.cs-panel {
    position: fixed;
    top: 0; right: 0;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: #0f1929;
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.cs-panel.open { transform: translateX(0); }

/* Panel scrollbar */
.cs-panel::-webkit-scrollbar { width: 4px; }
.cs-panel::-webkit-scrollbar-track { background: transparent; }
.cs-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* Panel header */
.cs-panel-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: sticky;
    top: 0;
    background: #0f1929;
    z-index: 10;
}
.cs-panel-close {
    background: rgba(255,255,255,.07);
    border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    color: #94a3b8;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background .15s, color .15s;
}
.cs-panel-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.cs-panel-name {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.1;
    margin: 8px 0 0;
    letter-spacing: -.5px;
}
.cs-panel-dosage-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
    color: #94a3b8;
}
.cs-panel-dosage-row span {
    display: flex; align-items: center; gap: 6px;
}

/* Panel body */
.cs-panel-body { padding: 20px 28px 32px; flex: 1; }

/* Section headings */
.cs-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #00d4a8;
    margin-bottom: 12px;
    margin-top: 24px;
}
.cs-section-title:first-child { margin-top: 0; }
.cs-section-title i { font-size: 13px; }

/* Body systems tags */
.cs-body-systems { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.body-system-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}
.bst-1 { background: rgba(0,212,168,.12);  color: #00d4a8;  border-color: rgba(0,212,168,.3); }
.bst-2 { background: rgba(168,85,247,.12); color: #c084fc;  border-color: rgba(168,85,247,.3); }
.bst-3 { background: rgba(34,211,238,.12); color: #22d3ee;  border-color: rgba(34,211,238,.3); }
.bst-4 { background: rgba(245,158,11,.12); color: #fbbf24;  border-color: rgba(245,158,11,.3); }
.bst-5 { background: rgba(96,165,250,.12); color: #60a5fa;  border-color: rgba(96,165,250,.3); }
.bst-6 { background: rgba(244,114,182,.12);color: #f472b6;  border-color: rgba(244,114,182,.3); }
.bst-7 { background: rgba(52,211,153,.12); color: #34d399;  border-color: rgba(52,211,153,.3); }
.bst-8 { background: rgba(251,191,36,.12); color: #fbbf24;  border-color: rgba(251,191,36,.3); }

/* Overview / mechanism text */
.cs-panel-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.75;
    margin: 0;
}

/* Benefits list */
.cs-benefits-list { list-style: none; padding: 0; margin: 0; }
.cs-benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 8px;
    line-height: 1.5;
}
.cs-benefits-list li i { color: #00d4a8; font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* Side effects list */
.cs-side-effects-list { list-style: none; padding: 0; margin: 0; }
.cs-side-effects-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 7px;
    line-height: 1.5;
}
.cs-side-effects-list li i { color: #f59e0b; font-size: 14px; flex-shrink: 0; margin-top: 2px; }

/* Notes & stacking box */
.cs-notes-box {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
}

/* Disclaimer */
.cs-disclaimer {
    background: rgba(245,158,11,.08);
    border: 1px solid rgba(245,158,11,.2);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    margin-top: 24px;
    font-size: 12px;
    color: #d97706;
    line-height: 1.6;
}
.cs-disclaimer i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* Panel CTA — add to stack */
.cs-panel-cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.cs-btn-stack {
    flex: 1;
    background: #00d4a8;
    color: #0a0e1a;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .15s;
}
.cs-btn-stack:hover { background: #00bfa0; color: #0a0e1a; }
.cs-btn-buy {
    flex: 1;
    background: rgba(255,255,255,.07);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,.12);
    padding: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background .15s;
}
.cs-btn-buy:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Empty state ── */
.cs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #334155;
}
.cs-empty i { font-size: 48px; display: block; margin-bottom: 12px; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .cs-hero h1 { font-size: 36px; }
    .cs-panel { width: 100vw; }
}
@media (max-width: 767px) {
    .cs-hero { padding: 28px 20px 20px; }
    .cs-hero h1 { font-size: 28px; }
    .cs-panel-name { font-size: 24px; }
}
