/* TradeProwl-inspired restyle overlay for Polymart.
   Loaded after the native stylesheet so these rules win on the properties
   they touch; !important is used because the native CSS is generated by
   runtime hex string-replacement in style.php and can't be relied on to
   keep a stable specificity/order. Safe to delete this one file to revert.

   Accent-color rules (buttons, links, selected states) apply in BOTH light
   and dark mode, so the red branding is consistent either way. The deeper
   background/surface redesign (near-black layered surfaces) is dark-mode
   only -- light mode keeps its native light background, just red-accented,
   rather than forcing a dark background onto a page built for light text. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700;800&family=Inter:wght@400;600&display=swap');

:root {
    --tp-primary: #dc2626;
    --tp-primary-hover: #ef4444;
    --tp-primary-dark: #991b1b;
    --tp-accent: #facc15;
    --tp-bg: #121212;
    --tp-surface-1: #171717;
    --tp-surface-2: #1c1c1c;
    --tp-surface-3: #242424;
    --tp-surface-4: #2a2a2a;
    --tp-surface-5: #313131;
    --tp-surface-6: #3d3d3d;
    --tp-text: #ffffff;
    --tp-text-secondary: #e2e2ea;
    --tp-text-dim: #b4b4be;
    --tp-text-muted: #78808c;
    --tp-border: rgba(255, 255, 255, 0.08);
    --tp-shadow-hover: 0 20px 40px rgba(220, 38, 38, 0.15);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: -0.02rem;
}

/* Primary buttons */
.button {
    background-color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
    border-radius: 6px !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    transition: 0.17s !important;
}
.button:hover {
    background-color: var(--tp-primary-hover) !important;
    border-color: var(--tp-primary-hover) !important;
    box-shadow: var(--tp-shadow-hover);
    transform: translateY(-2px);
}
.button:active {
    background-color: var(--tp-primary-dark) !important;
}
.button.error-color {
    background-color: transparent !important;
}

/* Weak/outline buttons */
.button-weak {
    color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
    border-radius: 6px !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    font-weight: 700 !important;
}
.button-weak:hover {
    background-color: rgba(220, 38, 38, 0.1) !important;
    color: var(--tp-primary-hover) !important;
}

/* Links / accent color usages */
.theme-color, a.theme-color, .theme-color-global, .link-color {
    color: var(--tp-primary) !important;
}
.theme-color-bg {
    background-color: var(--tp-primary) !important;
}
a:not(.button):not(.button-weak):not(.none):not(.category-button):not(.category-button-selected):not(.subheader-link) {
    color: var(--tp-primary);
}
a:not(.button):not(.button-weak):not(.none):not(.category-button):not(.category-button-selected):not(.subheader-link):hover {
    color: var(--tp-primary-hover);
}

/* Sub-header category bar: sits on a solid red background, so it needs its
   own white text rather than the site-wide red link color. */
.subheader-link {
    color: #ffffff !important;
}
.subheader-link:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Category filter pills */
.category-button {
    color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
}
.category-button-selected,
.category-button-selected.theme-color,
.category-button.theme-color {
    background-color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
    color: #ffffff !important;
}
.category-button:hover {
    color: var(--tp-primary-hover) !important;
    border-color: var(--tp-primary-hover) !important;
}
.category-button-selected:hover {
    background-color: var(--tp-primary-hover) !important;
    border-color: var(--tp-primary-hover) !important;
}

/* Header / nav */
.header-tab-selected, .header-tab-selected.theme-color {
    color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
}
.header-button-prominent {
    background-color: var(--tp-primary) !important;
    border-color: var(--tp-primary) !important;
}
.main-header-tab.selected {
    background-color: var(--tp-primary) !important;
    color: #ffffff !important;
}
.main-header-tab.selected:hover {
    color: #ffffff !important;
}

/* Dark-mode-only: near-black layered background + card surfaces.
   Native light-mode markup/colors are left alone entirely in light mode. */
html, body {
    background-color: var(--tp-bg) !important;
    font-family: 'Outfit', 'Inter', sans-serif !important;
}

.card, .card-nohover, .big-resource-card, .upgrade-card {
    background-color: var(--tp-surface-2) !important;
    border: 1px solid var(--tp-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition: 0.17s !important;
}
.card:hover, .big-resource-card:hover {
    background-color: var(--tp-surface-3) !important;
    border-color: var(--tp-primary) !important;
    box-shadow: var(--tp-shadow-hover) !important;
    transform: translateY(-3px);
}
