/* =====================================================
   SevinHub Awesome-Hacking Browser
   Forked from Hack-with-Github/Awesome-Hacking (CC0)
   ===================================================== */

: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;
    --success:       #22C55E;
    --danger:        #EF4444;
    --warning:       #F59E0B;
    --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, 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 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5rem;
}
.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);
    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.1rem;
}
.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: 3.5rem 1.25rem 1.5rem; }
.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.05rem; max-width: 660px; margin: 0 auto 1.5rem; }

.sh-meta-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin: 0 auto 1rem; 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-controls { max-width: 920px; margin: 0 auto 1.25rem; padding: 0 1.25rem; }
.sh-search-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: .4rem;
    display: flex; gap: .4rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 80px var(--glow-purple);
    margin-bottom: 1rem;
}
.sh-search-wrap input {
    flex: 1; background: transparent;
    border: none; outline: none;
    color: var(--text-primary);
    font-size: 1rem; font-family: inherit;
    padding: .75rem .9rem;
}
.sh-search-wrap input::placeholder { color: var(--text-muted); }
.sh-counter {
    align-self: center; padding-right: .85rem;
    font-size: .8rem; color: var(--text-muted);
    white-space: nowrap;
}

/* Tag pills */
.sh-tags {
    display: flex; flex-wrap: wrap; gap: .35rem;
    margin-bottom: 1.5rem;
}
.sh-tag-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .78rem; font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.sh-tag-pill:hover { border-color: var(--brand-purple); color: var(--text-primary); }
.sh-tag-pill.active {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-d));
    border-color: var(--brand-purple);
    color: white;
    box-shadow: 0 0 14px var(--glow-purple);
}
.sh-tag-pill .ct {
    font-size: .68rem;
    background: rgba(255,255,255,0.10);
    padding: 1px 7px; border-radius: 999px;
    margin-left: .15rem;
}

/* Results */
.sh-results { padding: 0 0 4rem; }
.sh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 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: 150px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.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(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 24px var(--glow-purple);
    text-decoration: none;
    color: inherit;
}
.sh-card .head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: .5rem; margin-bottom: .55rem;
    position: relative;
}
.sh-card .title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    display: inline-flex; align-items: center; gap: .45rem;
}
.sh-card .title .ico { font-size: 1.15rem; line-height: 1; }
.sh-card .out {
    font-size: .85rem;
    color: var(--text-muted);
    transition: color .15s, transform .15s;
}
.sh-card:hover .out { color: var(--brand-gold); transform: translate(2px, -2px); }
.sh-card p.desc {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 .75rem 0;
    flex: 1;
}
.sh-card .tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: auto; }
.sh-card .tag {
    display: inline-block;
    font-size: .66rem; font-weight: 600;
    padding: .15rem .55rem; border-radius: 999px;
    background: rgba(124,92,252,0.10);
    color: var(--brand-purple-l);
    border: 1px solid rgba(124,92,252,0.22);
}
.sh-card .tag.gold { background: rgba(245,184,0,0.10); color: var(--brand-gold-l); border-color: rgba(245,184,0,0.25); }
.sh-card .tag.red  { background: rgba(239,68,68,0.10);  color: #FCA5A5;           border-color: rgba(239,68,68,0.25); }

.sh-empty {
    text-align: center; padding: 3rem 1rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.sh-empty h3 { color: var(--text-secondary); margin-bottom: .3rem; }

/* Footer */
.sh-banner {
    margin: 2.5rem auto 0; 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;
    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; }
.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;
    text-decoration: none;
    display: inline-block;
}
.btn-ghost:hover { border-color: var(--brand-purple); color: var(--text-primary); text-decoration: none; }

.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); }

@media (max-width: 640px) {
    .sh-hero { padding-top: 2.5rem; }
    .sh-hero h1 { font-size: 1.95rem; }
    .sh-nav { gap: .65rem; font-size: .8rem; }
    .sh-nav .hide-sm { display: none; }
    .sh-grid { grid-template-columns: 1fr; }
}
