/* ============================================================
   PeptideCO — Peptide Cheatsheet Styles
   Light theme — matches site palette
   ============================================================ */

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

/* ── Hero header ── */
.cs-hero {
    background: #f0f4f8;
    padding: 48px 40px 36px;
    border-bottom: 1px solid #e2e8f0;
}
.cs-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.cs-hero h1 span { color: #2563eb; }
.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: #2563eb;
    color: #fff;
    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: #1d4ed8;
    color: #fff;
    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: #94a3b8;
    font-size: 15px;
}
.cs-search {
    width: 100%;
    padding: 11px 16px 11px 42px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.cs-search::placeholder { color: #94a3b8; }
.cs-search:focus { border-color: #2563eb; }

/* ── 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 #e2e8f0;
    background: #fff;
    color: #64748b;
    transition: all .15s;
    letter-spacing: .3px;
}
.cs-pill:hover {
    border-color: #93c5fd;
    color: #2563eb;
    background: #eff6ff;
}
.cs-pill.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.cs-pill .pill-count {
    background: rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 11px;
}
.cs-pill.active .pill-count { background: rgba(255,255,255,.25); }

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

/* ══════════════════════════════════════════
   CATEGORY COLOUR SYSTEM (light-bg adapted)
   healing          → teal    #0d9488
   glp-incretin     → purple  #7c3aed
   growth-hormone   → cyan    #0891b2
   other            → amber   #d97706
   bioregulator     → pink    #db2777
   peptide-related  → blue    #2563eb
   ══════════════════════════════════════════ */

.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: #ccfbf1; color: #0f766e;  border: 1px solid #99f6e4; }
.cat-glp-incretin     { background: #ede9fe; color: #6d28d9;  border: 1px solid #ddd6fe; }
.cat-growth-hormone   { background: #cffafe; color: #0e7490;  border: 1px solid #a5f3fc; }
.cat-other            { background: #fef3c7; color: #b45309;  border: 1px solid #fde68a; }
.cat-bioregulator     { background: #fce7f3; color: #9d174d;  border: 1px solid #fbcfe8; }
.cat-peptide-related  { background: #dbeafe; color: #1d4ed8;  border: 1px solid #bfdbfe; }

/* Peptide name colours by category */
.name-healing         { color: #0f766e; }
.name-glp-incretin    { color: #6d28d9; }
.name-growth-hormone  { color: #0e7490; }
.name-other           { color: #b45309; }
.name-bioregulator    { color: #9d174d; }
.name-peptide-related { color: #1d4ed8; }

/* ── Peptide card ── */
.cs-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.cs-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37,99,235,.1);
    transform: translateY(-2px);
}
.cs-card.active-card {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,.15);
}
.cs-card-arrow {
    position: absolute;
    top: 16px; right: 16px;
    color: #cbd5e1;
    font-size: 14px;
    transition: color .15s, transform .15s;
}
.cs-card:hover .cs-card-arrow { color: #2563eb; 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: #94a3b8;
    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 #e2e8f0;
    border-radius: 12px;
    padding: 2px 9px;
    color: #64748b;
    background: #f8fafc;
}

/* Card meta */
.cs-card-divider { border: none; border-top: 1px solid #f1f5f9; 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: #94a3b8;
}
.cs-meta-item i { font-size: 12px; color: #cbd5e1; }

/* ══════════════════════════════════════════
   DETAIL PANEL (slide-in from right)
   ══════════════════════════════════════════ */
.cs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,40,73,.45);
    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: #fff;
    border-left: 1px solid #e2e8f0;
    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: #e2e8f0; border-radius: 2px; }

/* Panel header */
.cs-panel-header {
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}
.cs-panel-close {
    background: #f1f5f9;
    border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background .15s, color .15s;
}
.cs-panel-close:hover { background: #e2e8f0; color: #1e293b; }
.cs-panel-name {
    font-size: 28px;
    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 #f1f5f9;
    font-size: 13px;
    color: #64748b;
}
.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: #2563eb;
    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: #ccfbf1; color: #0f766e; border-color: #99f6e4; }
.bst-2 { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.bst-3 { background: #cffafe; color: #0e7490; border-color: #a5f3fc; }
.bst-4 { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.bst-5 { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.bst-6 { background: #fce7f3; color: #9d174d; border-color: #fbcfe8; }
.bst-7 { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.bst-8 { background: #fef9c3; color: #854d0e; border-color: #fef08a; }

/* Overview / mechanism text */
.cs-panel-text {
    font-size: 14px;
    color: #475569;
    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: #334155;
    margin-bottom: 8px;
    line-height: 1.5;
}
.cs-benefits-list li i { color: #059669; 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: #475569;
    margin-bottom: 7px;
    line-height: 1.5;
}
.cs-side-effects-list li i { color: #d97706; font-size: 14px; flex-shrink: 0; margin-top: 2px; }

/* Notes & stacking box */
.cs-notes-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}

/* Disclaimer */
.cs-disclaimer {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    gap: 10px;
    margin-top: 24px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.6;
}
.cs-disclaimer i { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

/* Panel CTA */
.cs-panel-cta {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.cs-btn-stack {
    flex: 1;
    background: #2563eb;
    color: #fff;
    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: #1d4ed8; color: #fff; }
.cs-btn-buy {
    flex: 1;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    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: #f1f5f9; color: #1e293b; }

/* ── Empty state ── */
.cs-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.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: 22px; }
}
