/* =====================================================
   SevinHub WebScan — SevinHub Theme
   Forked from lissy93/web-check (MIT)
   ===================================================== */

:root {
    --bg-primary:    #070B14;
    --bg-secondary:  #0D1117;
    --bg-surface:    #141720;
    --bg-card:       #1A1F2E;
    --bg-elevated:   #202535;
    --brand-purple:  #7C5CFC;
    --brand-purple-l:#9B7FFF;
    --brand-purple-d:#5B3FD8;
    --brand-gold:    #F5B800;
    --brand-gold-l:  #FFD000;
    --brand-gold-d:  #C99A00;
    --success:       #22C55E;
    --danger:        #EF4444;
    --warning:       #F59E0B;
    --info:          #38BDF8;
    --text-primary:  #FFFFFF;
    --text-secondary:#94A3B8;
    --text-muted:    #64748B;
    --border:        #1E2435;
    --border-bright: #2A3247;
    --glow-purple:   rgba(124,92,252,0.35);
    --glow-gold:     rgba(245,184,0,0.35);
    --radius:        14px;
    --radius-sm:     8px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

body {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,92,252,0.18), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 110%, rgba(245,184,0,0.08), transparent 70%),
        var(--bg-secondary);
}

a { color: var(--brand-purple-l); text-decoration: none; }
a:hover { color: var(--brand-gold); text-decoration: underline; }

h1,h2,h3,h4,h5 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 .5rem;
    color: var(--text-primary);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ───── Header ───── */
.sh-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(13,17,23,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.sh-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 1.25rem;
    max-width: 1200px; margin: 0 auto;
}
.sh-logo {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem;
}
.sh-logo .logo-icon {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-d));
    box-shadow: 0 0 24px var(--glow-purple);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.sh-logo .logo-text {
    background: linear-gradient(135deg, #9B7FFF, #F5B800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sh-logo small { color: var(--text-muted); font-weight: 500; margin-left: .25rem; font-family: 'Inter', sans-serif; }
.sh-nav { display: flex; align-items: center; gap: 1.2rem; font-size: .9rem; }
.sh-nav a { color: var(--text-secondary); font-weight: 500; }
.sh-nav a:hover { color: var(--text-primary); text-decoration: none; }
.sh-pill-link {
    border: 1px solid var(--border-bright);
    border-radius: 999px;
    padding: .35rem .85rem;
    color: var(--text-secondary) !important;
    font-size: .8rem;
}
.sh-pill-link:hover { border-color: var(--brand-purple); color: var(--brand-purple-l) !important; }

/* ───── Hero ───── */
.sh-hero {
    text-align: center;
    padding: 4rem 1.25rem 2rem;
    position: relative;
}
.sh-kicker {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: .35rem .85rem; border-radius: 999px;
    background: rgba(124,92,252,0.12);
    color: var(--brand-purple-l);
    border: 1px solid rgba(124,92,252,0.3);
    margin-bottom: 1.1rem;
}
.sh-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-purple-l); box-shadow: 0 0 10px var(--brand-purple-l); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }

.sh-hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: .85rem;
}
.sh-hero h1 .grad {
    background: linear-gradient(135deg, var(--brand-purple-l) 0%, var(--brand-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sh-hero p.sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 640px; margin: 0 auto 2rem;
}

.sh-meta-strip {
    display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem;
    margin: 0 auto 1.2rem; max-width: 720px;
}
.sh-meta-strip .chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 999px; padding: .35rem .8rem;
    font-size: .78rem; color: var(--text-secondary);
}
.sh-meta-strip .chip.gold { border-color: rgba(245,184,0,0.35); color: var(--brand-gold-l); }
.sh-meta-strip .chip.purple { border-color: rgba(124,92,252,0.35); color: var(--brand-purple-l); }

/* ───── Search ───── */
.sh-search-wrap {
    max-width: 720px; margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: .5rem;
    display: flex; gap: .5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 80px var(--glow-purple);
}
.sh-search-wrap input[type=text] {
    flex: 1;
    background: transparent;
    border: none; outline: none;
    color: var(--text-primary);
    font-size: 1rem; font-family: inherit;
    padding: .85rem 1rem;
}
.sh-search-wrap input::placeholder { color: var(--text-muted); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-d));
    border: none; color: white;
    padding: .85rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 700; font-size: .95rem;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--glow-purple);
    transition: transform .15s, box-shadow .15s;
    font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px var(--glow-purple); }
.btn-primary:disabled { opacity: .55; cursor: wait; transform: none; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-bright);
    color: var(--text-secondary);
    padding: .55rem 1rem; border-radius: var(--radius-sm);
    font-size: .85rem; cursor: pointer; font-family: inherit;
}
.btn-ghost:hover { border-color: var(--brand-purple); color: var(--text-primary); }

/* ───── Results grid ───── */
.sh-results {
    padding: 2rem 1.25rem 4rem;
}
.sh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}
.sh-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
    display: flex; flex-direction: column;
    min-height: 130px;
    transition: border-color .2s, transform .2s;
    position: relative;
    overflow: hidden;
}
.sh-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(124,92,252,0.04), transparent 60%);
    pointer-events: none;
}
.sh-card:hover { border-color: var(--border-bright); transform: translateY(-2px); }

.sh-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .65rem;
    position: relative;
}
.sh-card-head .title {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: .98rem; font-weight: 700;
}
.sh-card-head .ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(124,92,252,0.13);
    color: var(--brand-purple-l);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
    border: 1px solid rgba(124,92,252,0.22);
}
.sh-card-head .ms {
    font-size: .7rem; color: var(--text-muted);
    background: var(--bg-elevated); padding: .2rem .5rem; border-radius: 999px;
}

.sh-card-body {
    flex: 1; font-size: .85rem; color: var(--text-secondary);
    position: relative;
}
.sh-card-body code {
    background: rgba(255,255,255,0.04);
    color: var(--brand-purple-l);
    padding: .12rem .4rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: .78rem;
    word-break: break-all;
}
.sh-card-body .row { display: flex; justify-content: space-between; gap: .5rem; padding: .25rem 0; border-bottom: 1px dashed var(--border); }
.sh-card-body .row:last-child { border-bottom: none; }
.sh-card-body .row strong { color: var(--text-primary); font-weight: 600; }
.sh-card-body ul { margin: 0; padding-left: 1.1rem; }
.sh-card-body li { margin-bottom: .25rem; }
.sh-card-body pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .55rem .65rem;
    font-size: .72rem;
    overflow: auto; max-height: 220px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    margin: 0;
}

.tag {
    display: inline-block;
    font-size: .68rem; font-weight: 600;
    padding: .15rem .55rem; border-radius: 999px;
    margin: .15rem .25rem .15rem 0;
    background: rgba(124,92,252,0.12);
    color: var(--brand-purple-l);
    border: 1px solid rgba(124,92,252,0.25);
}
.tag.ok { background: rgba(34,197,94,0.13); color: var(--success); border-color: rgba(34,197,94,0.3); }
.tag.warn { background: rgba(245,158,11,0.13); color: var(--warning); border-color: rgba(245,158,11,0.3); }
.tag.bad { background: rgba(239,68,68,0.13); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.tag.gold { background: rgba(245,184,0,0.13); color: var(--brand-gold-l); border-color: rgba(245,184,0,0.3); }

.grade {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--brand-purple-l), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* loader */
.spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border-bright);
    border-top-color: var(--brand-purple-l);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    display: inline-block; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.muted { color: var(--text-muted); font-size: .78rem; }
.error { color: var(--danger); font-size: .8rem; }

/* ───── Examples row ───── */
.sh-examples {
    margin: 1rem auto 0; max-width: 720px;
    display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
    font-size: .8rem; color: var(--text-muted);
}
.sh-examples b { color: var(--text-secondary); margin-right: .25rem; font-weight: 500; }
.sh-examples a { color: var(--brand-purple-l); border-bottom: 1px dashed var(--border-bright); padding-bottom: 1px; }

/* ───── Footer / About ───── */
.sh-banner {
    margin: 0 auto; max-width: 980px;
    background: linear-gradient(135deg, rgba(124,92,252,0.07), rgba(245,184,0,0.06));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-top: 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.sh-banner h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.sh-banner p { color: var(--text-secondary); font-size: .9rem; margin: 0; }
.sh-banner .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.sh-footer {
    text-align: center;
    padding: 2.5rem 1.25rem 2rem;
    color: var(--text-muted);
    font-size: .82rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}
.sh-footer a { color: var(--brand-purple-l); }
.sh-footer .row1 { margin-bottom: .35rem; }

/* ───── Toast ───── */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .85rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    animation: toast-in .3s ease;
}
.toast.err { border-color: var(--danger); color: var(--danger); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ───── Mobile ───── */
@media (max-width: 640px) {
    .sh-hero { padding-top: 2.5rem; }
    .sh-hero h1 { font-size: 1.95rem; }
    .sh-search-wrap { flex-direction: column; padding: .55rem; }
    .sh-search-wrap input { padding: .7rem .85rem; }
    .sh-nav { gap: .65rem; font-size: .8rem; }
    .sh-nav .hide-sm { display: none; }
    .sh-grid { grid-template-columns: 1fr; }
}
