/* ============================================================
   docs.css — Picklly.co Documentation Pages
   Scoped with docs- prefix to avoid conflicts with marketing.css
   Link from App.razor: <link rel="stylesheet" href="/css/docs.css" />
   ============================================================ */

/* ── Layout ── */
.docs-shell { min-height: 100vh; background: #0d1b2a; }

.docs-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Source Sans 3', sans-serif;
    color: #fff;
    background: #0d1b2a;
}

/* ── Sidebar ── */
#docs-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(10,20,32,0.97);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(0,188,212,0.2);
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.docs-sidebar-logo {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0,188,212,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.docs-sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.docs-sidebar-logo img { height: 40px; width: auto; flex-shrink: 0; }
.docs-brand { font-family: 'Oswald', sans-serif; font-size: 1.3rem; color: #fff; letter-spacing: 2px; line-height: 1; }
.docs-brand span { color: #00BCD4; }
.docs-tagline { font-size: 0.65rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 3px; }

.docs-section-label {
    padding: 1.1rem 1.25rem 0.35rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.25);
}

.docs-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    color: rgba(255,255,255,0.52);
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 600;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.docs-nav-link:hover { color: #fff; background: rgba(0,188,212,0.06); border-left-color: #00BCD4; }
.docs-nav-link .icon { font-size: 0.95rem; width: 18px; text-align: center; flex-shrink: 0; }

.docs-sidebar-switcher {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem 1.25rem 0;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.docs-switch-link {
    font-size: 0.8rem;
    color: #00BCD4;
    text-decoration: none;
    padding: 6px 0;
    transition: opacity 0.15s;
}
.docs-switch-link:hover { opacity: 0.75; }

.docs-sidebar-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.68rem;
    color: rgba(255,255,255,0.18);
    line-height: 1.6;
}

/* ── Main content ── */
.docs-main {
    margin-left: 280px;
    flex: 1;
    min-height: 100vh;
}

/* ── Hero ── */
.docs-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2e42 55%, #0d1b2a 100%);
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,188,212,0.2);
}
.docs-hero-admin {
    background: linear-gradient(135deg, #060e17 0%, #1a2e42 60%, #0d1b2a 100%);
}
.docs-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,188,212,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,188,212,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.docs-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,188,212,0.09), transparent 70%);
    pointer-events: none;
}
.docs-hero-logo {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 1.75rem;
}
.docs-hero-logo img { height: 48px; }
.docs-hero-brand { font-family: 'Oswald', sans-serif; font-size: 1.7rem; letter-spacing: 2px; color: #fff; line-height: 1; }
.docs-hero-brand span { color: #00BCD4; }
.docs-hero-tag {
    position: relative; z-index: 2;
    display: inline-block;
    background: rgba(0,188,212,0.1);
    border: 1px solid rgba(0,188,212,0.28);
    color: #00BCD4;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.docs-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 2px; line-height: 1;
    color: #fff; margin-bottom: 0.75rem;
    position: relative; z-index: 2;
}
.docs-accent { color: #00BCD4; }
.docs-gold   { color: #FFC107; }
.docs-hero p {
    font-size: 1.05rem; font-weight: 300;
    color: #e8f5e9; max-width: 560px; line-height: 1.6;
    position: relative; z-index: 2;
}

.docs-divider {
    height: 3px;
    background: linear-gradient(90deg, #00BCD4, #4CAF50, #FFC107);
    opacity: 0.5;
}

/* ── Sections ── */
.docs-section { padding: 3.5rem 3rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.docs-section:last-of-type { border-bottom: none; }
.docs-alt { background: rgba(255,255,255,0.02); }

.docs-section-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.docs-icon-wrap {
    width: 46px; height: 46px; border-radius: 10px;
    background: rgba(0,188,212,0.1);
    border: 1px solid rgba(0,188,212,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}
.docs-icon-admin {
    background: rgba(255,193,7,0.1);
    border-color: rgba(255,193,7,0.25);
}
.docs-section-head h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem; letter-spacing: 1px;
    color: #fff; line-height: 1; margin: 0;
}
.docs-sub {
    font-family: 'Oswald', sans-serif;
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #00BCD4; margin-bottom: 3px;
}
.docs-sub-gold { color: #FFC107; }

.docs-section h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem; letter-spacing: 0.5px;
    color: #00BCD4; margin: 1.75rem 0 0.65rem;
}
.docs-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.92rem; font-weight: 600;
    color: #fff; margin: 1rem 0 0.35rem;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.docs-section p { margin-bottom: 0.85rem; color: #e8f5e9; font-size: 0.97rem; line-height: 1.7; }
.docs-section strong { color: #fff; }
.docs-section em { color: #e8f5e9; }

/* ── Cards ── */
.docs-card-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }
.docs-card-grid-2{ display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; margin: 1.4rem 0; }

.docs-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1.35rem;
    transition: transform 0.2s, border-color 0.2s;
}
.docs-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.14); }
.docs-card-accent  { border-top: 3px solid #00BCD4; }
.docs-card-primary { border-top: 3px solid #0097A7; }
.docs-card-gold    { border-top: 3px solid #FFC107; }
.docs-card-icon { font-size: 1.9rem; margin-bottom: 0.65rem; }
.docs-card h4 { margin-top: 0; }
.docs-card p  { font-size: 0.85rem; color: #a5d6a7; margin: 0; }

/* ── Steps ── */
.docs-steps { display: flex; flex-direction: column; gap: 0.9rem; margin: 1.1rem 0; }
.docs-step  { display: flex; gap: 0.9rem; align-items: flex-start; }
.docs-step-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: #0d1b2a;
    font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.docs-step-body { flex: 1; }
.docs-step-body strong { display: block; font-size: 0.93rem; color: #fff; margin-bottom: 0.15rem; }
.docs-step-body span  { font-size: 0.83rem; color: #a5d6a7; }

/* ── Tables ── */
.docs-table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: 0.88rem; }
.docs-table thead { background: #243b55; }
.docs-table th {
    padding: 0.7rem 1rem; text-align: left;
    font-family: 'Oswald', sans-serif; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 1px;
    color: #00BCD4; border-bottom: 1px solid rgba(0,188,212,0.22);
}
.docs-table td { padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; color: #e8f5e9; }
.docs-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.docs-table tr:hover td { background: rgba(0,188,212,0.05); }
.docs-check { color: #4ade80; font-size: 1.05rem; }
.docs-cross { color: rgba(255,255,255,0.2); font-size: 1.05rem; }

code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0,188,212,0.1);
    border: 1px solid rgba(0,188,212,0.2);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-size: 0.84em;
    color: #00BCD4;
}

/* ── Badges ── */
.docs-badge {
    display: inline-block; padding: 0.18rem 0.6rem;
    border-radius: 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.docs-badge-common    { background: rgba(255,255,255,0.08); color: #ccc; }
.docs-badge-uncommon  { background: rgba(76,175,80,0.12); color: #81c784; border: 1px solid rgba(76,175,80,0.28); }
.docs-badge-rare      { background: rgba(0,188,212,0.12); color: #00BCD4; border: 1px solid rgba(0,188,212,0.28); }
.docs-badge-legendary { background: rgba(255,193,7,0.12); color: #FFC107; border: 1px solid rgba(255,193,7,0.28); }
.docs-badge-new       { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.28); }
.docs-badge-admin     { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.22); }

/* ── XP rows ── */
.docs-xp-list { max-width: 480px; margin: 1rem 0; }
.docs-xp-row  { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 1rem; border-radius: 8px; margin-bottom: 0.35rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); }
.docs-xp-lv   { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #00BCD4, #0097A7); color: #0d1b2a; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.docs-xp-bar-wrap { flex: 1; }
.docs-xp-track { height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.docs-xp-fill  { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #00BCD4, #FFC107); }
.docs-xp-label { font-size: 0.78rem; color: #a5d6a7; margin-top: 0.2rem; }
.docs-xp-pts   { font-family: 'Oswald', sans-serif; font-size: 0.8rem; font-weight: 600; color: #FFC107; min-width: 75px; text-align: right; }

/* ── Callouts ── */
.docs-callout { display: flex; gap: 0.8rem; padding: 1rem 1.15rem; border-radius: 9px; margin: 1.1rem 0; font-size: 0.87rem; }
.docs-callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.docs-callout-body { color: #e8f5e9; }
.docs-callout-body strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; color: #fff; }
.docs-callout-info    { background: rgba(0,188,212,0.08);  border-left: 4px solid #00BCD4; }
.docs-callout-tip     { background: rgba(255,193,7,0.08);  border-left: 4px solid #FFC107; }
.docs-callout-warn    { background: rgba(239,68,68,0.07);  border-left: 4px solid #ef4444; }
.docs-callout-success { background: rgba(76,175,80,0.08);  border-left: 4px solid #4CAF50; }

/* ── Setup blocks ── */
.docs-setup-block { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; margin: 1.1rem 0; }
.docs-setup-head  { background: #243b55; border-bottom: 1px solid rgba(0,188,212,0.2); color: #fff; padding: 0.8rem 1.15rem; font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; }
.docs-setup-body  { padding: 1.15rem; }
.docs-setup-body ul { padding-left: 1.25rem; }
.docs-setup-body li { margin-bottom: 0.38rem; font-size: 0.86rem; color: #a5d6a7; }
.docs-setup-body li strong { color: #fff; }
.docs-setup-body p  { font-size: 0.86rem; color: #a5d6a7; margin-bottom: 0.65rem; }

/* ── Footer ── */
.docs-footer { background: rgba(6,14,23,0.98); border-top: 1px solid rgba(0,188,212,0.18); padding: 1.75rem 3rem; }
.docs-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.docs-footer-brand { display: flex; align-items: center; gap: 12px; }
.docs-footer-brand img { height: 34px; }
.docs-footer-brand span { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.docs-footer-brand strong { color: rgba(255,255,255,0.55); }
.docs-footer-name { font-family: 'Oswald', sans-serif; font-size: 1.15rem; color: #fff; letter-spacing: 2px; }
.docs-footer-name span { color: #00BCD4; }
.docs-footer-link { display: block; font-size: 0.82rem; color: #00BCD4; text-decoration: none; padding: 4px 0; transition: opacity 0.15s; }
.docs-footer-link:hover { opacity: 0.72; }

/* ── Mobile menu button ── */
.docs-mobile-btn {
    display: none;
    position: fixed; top: 1rem; left: 1rem; z-index: 200;
    background: #00BCD4; color: #0d1b2a;
    border: none; width: 40px; height: 40px;
    border-radius: 8px; font-size: 1.2rem;
    align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 16px rgba(0,188,212,0.3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    #docs-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    #docs-sidebar.open { transform: translateX(0); }
    .docs-main { margin-left: 0; }
    .docs-mobile-btn { display: flex; }
    .docs-hero { padding: 3rem 1.5rem; }
    .docs-section { padding: 2.5rem 1.5rem; }
    .docs-footer { padding: 1.5rem; }
    .docs-footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   Picklly.co — Badge Directory (/docs/badges)
   Depends on marketing.css for: CSS variables, .badge-rarity
   rarity-* classes, .btn-ghost, .section-tag
   ============================================================ */

.badges-ref-page {
    padding-top: 80px;
    min-height: 100vh;
}

/* ── Hero ── */
.badges-ref-hero {
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
    border-bottom: 1px solid rgba(0,188,212,0.12);
    padding: 72px 48px 56px;
}

.badges-ref-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.badges-ref-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
}

.badges-ref-sub {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 620px;
    margin-bottom: 32px;
}

.badges-ref-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Body ── */
.badges-ref-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 48px 80px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* ── Category section header ── */
.badges-ref-section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
}

.badges-ref-cat-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.badges-ref-cat-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}

.badges-ref-cat-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
}

/* ── Table ── */
.badges-ref-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.badges-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .badges-ref-table thead {
        background: rgba(0,188,212,0.07);
        border-bottom: 1px solid rgba(0,188,212,0.18);
    }

    .badges-ref-table th {
        font-family: 'Oswald', sans-serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--cyan);
        padding: 14px 20px;
        text-align: left;
        white-space: nowrap;
    }

    .badges-ref-table tbody tr {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: background 0.15s;
    }

        .badges-ref-table tbody tr:last-child {
            border-bottom: none;
        }

        .badges-ref-table tbody tr:hover {
            background: rgba(0,188,212,0.04);
        }

    .badges-ref-table td {
        padding: 16px 20px;
        color: var(--text-light);
        vertical-align: top;
    }

/* Badge name cell */
.col-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    min-width: 180px;
}

.ref-badge-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.ref-badge-name {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

/* Description */
.col-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    min-width: 300px;
}

/* XP */
.col-xp {
    text-align: right;
    white-space: nowrap;
}

.ref-xp {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
    display: block;
}

.ref-xp-repeat {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* Repeatable pill */
.col-repeat {
    text-align: center;
    white-space: nowrap;
}

.ref-pill {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
}

.ref-pill-yes {
    background: rgba(76,175,80,0.15);
    color: #81c784;
    border: 1px solid rgba(76,175,80,0.3);
}

.ref-pill-no {
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── Footer ── */
.badges-ref-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 48px 80px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .badges-ref-hero {
        padding: 56px 24px 40px;
    }

    .badges-ref-body {
        padding: 40px 16px 60px;
        gap: 56px;
    }

    .badges-ref-footer {
        padding: 0 16px 60px;
    }

    .col-desc {
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .badges-ref-section-header {
        flex-direction: column;
        gap: 10px;
    }

    .badges-ref-table th,
    .badges-ref-table td {
        padding: 12px 14px;
    }
}