 
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');
 
/* ── CSS Variables ── */
:root {
    --bg-overlay: rgba(14, 14, 20, 0.55);
    --bg-panel: rgba(20, 20, 30, 0.92);
    --bg-card: rgba(30, 31, 45, 0.9);
    --bg-input: rgba(25, 26, 38, 0.95);
    --text-primary: #e8eaf0;
    --text-secondary: #b0b8cc;
    --text-muted: #6a7090;
    --border-color: rgba(107, 115, 148, 0.25);
    --border-accent: rgba(107, 115, 148, 0.4);
    --accent-red: #cc2020;
    --accent-blue: #5874b4;
    --steel-highlight: #8890aa;
    --steel-light: #a0a8c0;
    --link-color: #8ab4e0;
    --link-hover: #b8d4f0;
}
 
/* ── Background ── */
html {
    min-height: 100%;
}
 
body {
    background: var(--bg-overlay) url('/images/bg-steelix.jpg') no-repeat center top fixed !important;
    background-size: cover !important;
    color: var(--text-primary) !important;
    font-family: 'Outfit', Verdana, Helvetica, Arial, sans-serif !important;
    min-height: 100vh;
}
 
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 16, 0.25) 0%,
        rgba(14, 14, 22, 0.55) 30%,
        rgba(14, 14, 22, 0.7) 100%
    );
    z-index: -1;
    pointer-events: none;
}
 
body, textarea, .textbox {
    font-family: 'Outfit', Verdana, Helvetica, Arial, sans-serif !important;
}
 
a {
    color: var(--link-color);
}
a:hover {
    color: var(--link-hover);
}
 
/* ── Header Bar ── */
.pfx-topbar {
    background: linear-gradient(135deg, rgba(15, 15, 28, 0.95) 0%, rgba(18, 24, 50, 0.95) 50%, rgba(12, 38, 72, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(107, 115, 148, 0.3) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.7) !important;
    height: auto !important;
    text-shadow: none !important;
    filter: none !important;
    padding: 0 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
 
.pfx-topbar .header {
    max-width: 1100px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    height: 52px !important;
    min-height: 52px !important;
    float: none !important;
}
 
.pfx-topbar .header .nav,
.pfx-topbar .header .nav-play {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
}
 
.pfx-topbar .header .nav li,
.pfx-topbar .header .nav-play li {
    float: none !important;
    display: block !important;
}
 
/* Logo — separate from nav buttons */
.nav .button img {
    position: static !important;
    height: 28px !important;
    width: auto !important;
    vertical-align: middle !important;
    margin-right: 0 !important;
}
 
/* The first nav button (logo + Home) — make logo standalone */
.pfx-topbar .nav li:first-child .button {
    padding: 4px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
}
 
/* All nav buttons — equal sizing */
.pfx-topbar .nav .button,
.pfx-topbar .nav-play .button {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #b0b8cc !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 7px 16px !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    filter: none !important;
    text-align: center !important;
    min-width: 80px !important;
}
 
.pfx-topbar .nav .button:hover,
.pfx-topbar .nav-play .button:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    filter: none !important;
}
 
/* Current page */
.pfx-topbar .nav .button.cur,
.pfx-topbar .nav .button.cur:hover {
    color: #fff !important;
    background: rgba(107, 115, 148, 0.3) !important;
    font-weight: 600 !important;
    border: none !important;
}
 
/* Purple buttons (Discord, Forums) */
.pfx-topbar .nav .purplebutton {
    background: linear-gradient(135deg, #5865F2, #7289da) !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3) !important;
}
.pfx-topbar .nav .purplebutton:hover {
    background: linear-gradient(135deg, #7289da, #8fa4e8) !important;
    box-shadow: 0 2px 12px rgba(88, 101, 242, 0.5) !important;
    transform: translateY(-1px);
}
 
/* Green Play button */
.pfx-topbar .nav-play .greenbutton {
    background: linear-gradient(135deg, #2d6a4f, #40916c) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 7px 16px !important;
    min-width: 80px !important;
    box-shadow: 0 2px 8px rgba(64, 145, 108, 0.3) !important;
    border: none !important;
    border-radius: 6px !important;
    filter: none !important;
}
.pfx-topbar .nav-play .greenbutton:hover {
    background: linear-gradient(135deg, #40916c, #52b788) !important;
    box-shadow: 0 2px 12px rgba(64, 145, 108, 0.5) !important;
    transform: translateY(-1px);
}
 
/* Remove radius overrides */
.nav li:first-child .button,
.nav li:last-child .button {
    border-radius: 6px !important;
}
 
/* ── Main Panel — semi-transparent over wallpaper ── */
.pfx-panel {
    background: var(--bg-overlay) !important;
    border-left: 1px solid var(--border-color) !important;
    box-shadow: none !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
 
.pfx-body {
    max-width: 720px;
}
 
/* ── Pokédex Title ── */
.pokedex h1 {
    padding: 60px 0 30px 0 !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}
 
.pokedex h1 a {
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
    text-decoration: none !important;
}
 
.pokedex.aboveresults h1 a {
    color: var(--text-secondary) !important;
    text-shadow: none !important;
}
 
/* ── Search Box ── */
.textbox,
.searchbox {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-accent) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(107, 115, 148, 0.08) !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
}
.textbox:hover,
.searchbox:hover {
    border-color: var(--steel-highlight) !important;
    background: rgba(35, 36, 52, 0.95) !important;
}
.textbox:focus,
.searchbox:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 10px rgba(88, 116, 180, 0.35) !important;
    background: rgba(35, 36, 52, 0.98) !important;
    outline: none !important;
}
 
.searchbox::placeholder {
    color: var(--text-muted) !important;
}
 
/* ── Buttons ── */
.button,
.pokedex .buttonbar .button {
    font-family: 'Outfit', sans-serif !important;
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-accent) !important;
    text-shadow: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
    filter: none !important;
}
.button:hover {
    background: rgba(50, 52, 72, 0.9) !important;
    color: var(--text-primary) !important;
    border-color: var(--steel-highlight) !important;
    filter: none !important;
}
.button:active {
    background: rgba(18, 18, 30, 0.95) !important;
    filter: none !important;
}
.button.cur,
.button.cur:hover {
    color: var(--text-muted) !important;
    background: var(--bg-panel) !important;
    box-shadow: none !important;
    border-color: var(--border-color) !important;
}
 
/* ── Tabbar ── */
.tabbar:after {
    display: none !important;
}
.tabbar .button {
    box-shadow: none !important;
}
.tabbar .button.cur,
.tabbar .button.cur:hover {
    background: var(--bg-panel) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-accent) !important;
    border-bottom: 0 !important;
}
 
/* ── Search Results / Utilichart — ALL TEXT WHITE ── */
.utilichart,
.utilichart a,
.utilichart a *,
.utilichart em,
.utilichart small,
.utilichart .content,
.results,
.results * {
    color: var(--text-primary) !important;
}
 
.utilichart a {
    border-radius: 6px !important;
    transition: background 0.15s ease;
}
 
.utilichart a.active,
.utilichart a.active:hover,
.utilichart.nokbd a:hover {
    border-color: var(--border-accent) !important;
    background: var(--bg-card) !important;
}
 
.utilichart a.sel,
.utilichart a.sel:hover,
.utilichart a.cur,
.utilichart a.cur:hover {
    border-color: var(--steel-highlight) !important;
    background: rgba(107, 115, 148, 0.2) !important;
}
 
.utilichart h3,
.results h3 {
    color: var(--steel-light) !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
 
.utilichart .notfound em {
    color: var(--text-muted) !important;
}
 
/* ── Dex Entry Pages ── */
.dexentry h1 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    color: #fff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.dexentry h1 code {
    color: var(--text-muted) !important;
}
.dexentry .tier {
    color: var(--text-secondary) !important;
    border-color: var(--border-accent) !important;
    background: var(--bg-card);
}
.dexentry dt {
    color: var(--steel-light) !important;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 8pt;
    letter-spacing: 0.5px;
}
.dexentry dd {
    color: var(--text-primary) !important;
}
.dexentry p, .dexentry h2 {
    color: var(--text-primary) !important;
}
.dexentry h2 {
    font-family: 'Outfit', sans-serif !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
 
/* Stat bars */
.statbar span {
    background: linear-gradient(90deg, var(--steel-highlight), #9098b4) !important;
    box-shadow: inset 1px 3px 0 rgba(255, 255, 255, 0.15), inset -1px -1px 0 rgba(0, 0, 0, 0.4), 0 0 6px rgba(107, 115, 148, 0.2) !important;
    border-radius: 3px !important;
}
 
table.stats th {
    color: var(--text-secondary) !important;
}
table.stats td {
    color: var(--text-primary) !important;
}
table.stats .bst,
table.stats td.bst {
    color: var(--text-muted) !important;
}
table.stats .ministat,
table.stats th.ministat {
    color: var(--text-muted) !important;
}
table.stats .stat {
    color: var(--text-primary) !important;
}
 
table.evos,
table.evos td,
table.evos th,
table.evos a {
    color: var(--text-primary) !important;
}
table.evos .arrow {
    color: var(--text-muted) !important;
}
 
/* ── Subtle links ── */
a.subtle {
    color: var(--text-primary) !important;
}
a.subtle:hover {
    color: var(--link-hover) !important;
}
 
/* ── Move tags ── */
.movetag {
    color: var(--text-secondary) !important;
}
.movetag small {
    color: var(--text-muted) !important;
}
 
.dexentry dl.ppentry dd {
    color: var(--text-muted) !important;
}
.dexentry dl.powerentry dd,
.dexentry dl.accuracyentry dd {
    color: var(--text-primary) !important;
}
.dexentry .minor {
    color: var(--text-muted) !important;
}
 
/* ── Warning box ── */
.warning {
    border-color: var(--accent-red) !important;
    background: rgba(204, 32, 32, 0.15) !important;
    color: var(--text-primary) !important;
}
 
/* ── Footer ── */
.footer {
    color: var(--text-muted) !important;
}
 
/* ── Popup ── */
.pfx-popup-bg {
    background: #000 !important;
    opacity: 0.7 !important;
}
.pfx-popup {
    background: rgba(20, 20, 30, 0.97) !important;
    border-color: var(--border-accent) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7) !important;
    color: var(--text-primary) !important;
    backdrop-filter: blur(12px);
}
 
/* ── Side nav arrows ── */
.pfx-go-left,
.pfx-go-right {
    background-color: rgba(14, 14, 20, 0.8) !important;
    border-color: var(--border-color) !important;
}
.pfx-go-left:hover,
.pfx-go-right:hover {
    background-color: rgba(30, 31, 45, 0.9) !important;
}
 
/* ── Back button ── */
.pfx-backbutton {
    background: var(--bg-card) !important;
    border-color: var(--border-accent) !important;
    color: var(--text-secondary) !important;
    box-shadow: none !important;
}
.pfx-backbutton:hover {
    background: rgba(50, 52, 72, 0.9) !important;
    border-color: var(--steel-highlight) !important;
    color: var(--text-primary) !important;
}
 
/* ── Loading ── */
.pfx-loading {
    background: rgba(20, 20, 30, 0.95) !important;
    border-color: var(--border-accent) !important;
    color: var(--steel-light) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}
 
/* ── Ladder tables ── */
.ladder table,
.ladder td,
.ladder th {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
 
/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(14, 14, 20, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(107, 115, 148, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--steel-highlight);
}
 
/* ── Selection ── */
::selection {
    background: rgba(107, 115, 148, 0.4);
    color: #fff;
}
 
/* ── Responsive ── */
@media (max-width: 520px) {
    .pfx-topbar .header {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 8px 12px !important;
    }
    .pfx-topbar .header .nav {
        flex-wrap: wrap !important;
        gap: 2px !important;
    }
    .pfx-topbar .nav .button,
    .pfx-topbar .nav-play .button {
        font-size: 12px !important;
        padding: 5px 10px !important;
        min-width: 60px !important;
    }
}
 
/* Utilichart section headers */
.utilichart h3,
.utilichart .header,
.utilichart .pokemonnamecol,
.utilichart .pokemon-results h3,
.utilichart li h3 {
    background: var(--bg-card) !important;
    color: var(--steel-light) !important;
    border-color: var(--border-color) !important;
    text-shadow: none !important;
}

/* Sort bar and result list backgrounds */
.utilichart a,
.utilichart li {
    background: transparent !important;
}

.utilichart a.active,
.utilichart a.active:hover,
.utilichart.nokbd a:hover {
    background: var(--bg-card) !important;
}

/* Sort bar */
.utilichart .sortrow,
.utilichart .sortrow a,
.utilichart .resultheader,
.utilichart .resultheader a {
    background: rgba(30, 31, 45, 0.95) !important;
    color: var(--steel-light) !important;
    border-color: var(--border-color) !important;
}

/* Sort bar - all states */
.utilichart .sortrow a,
.utilichart .sortrow a:hover,
.utilichart .sortrow a.sel,
.utilichart .sortrow a.cur,
.utilichart .resultheader a,
.utilichart .resultheader a:hover,
.utilichart .resultheader a.sel,
.utilichart .resultheader a.cur {
    background: rgba(40, 42, 60, 0.95) !important;
    color: var(--steel-light) !important;
    border-color: var(--border-accent) !important;
}

/* Sort column buttons */
.sortcol,
.sortcol:hover,
.sortcol.cur,
.sortcol.cur:hover,
button.sortcol,
button.sortcol:hover,
button.sortcol.cur {
    background: rgba(30, 31, 45, 0.95) !important;
    color: var(--steel-light) !important;
    border-color: var(--border-color) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
