/* PhishStats brand overrides for Ghost Source theme */

:root {
    --ps-bg-1: #1f2023;
    --ps-bg-2: #26272b;
    --ps-bg-3: #303136;
    --ps-bg-3-hover: #37383e;
    --ps-primary: #6366f1;
    --ps-primary-hover: #7274f3;
    --ps-secondary: #a1a3f7;
    --ps-text: #ffffff;
    --ps-text-muted: #aeb2b7;
    --ps-border: rgba(255, 255, 255, 0.15);

    --background-color: var(--ps-bg-2);
    --ghost-accent-color: var(--ps-primary);
    --color-primary-text: var(--ps-text);
    --color-secondary-text: var(--ps-text-muted);
    --color-darker-gray: var(--ps-text);
    --color-dark-gray: #c8ccd0;
    --color-mid-gray: #8b9199;
    --color-light-gray: #404248;
    --color-lighter-gray: rgba(255, 255, 255, 0.08);
    --color-border: var(--ps-border);
    --color-dark-border: rgba(255, 255, 255, 0.35);
    --font-sans: "Geist Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    color-scheme: dark;
}

html,
html.has-light-text,
html.has-dark-text {
    --background-color: var(--ps-bg-2);
    --color-primary-text: var(--ps-text);
    --color-secondary-text: var(--ps-text-muted);
    --color-darker-gray: var(--ps-text);
    --color-lighter-gray: rgba(255, 255, 255, 0.08);
    --color-border: var(--ps-border);
}

body {
    background-color: var(--ps-bg-2);
    color: var(--ps-text);
}

a {
    color: var(--ps-secondary);
}

a:hover {
    color: var(--ps-text);
}

.gh-button,
button.gh-button {
    background-color: var(--ps-primary) !important;
    color: var(--ps-text) !important;
    border-radius: 0.65rem;
}

.gh-button:hover {
    background-color: var(--ps-primary-hover) !important;
}

.gh-navigation,
.gh-footer {
    background-color: rgba(31, 32, 35, 0.92) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ps-border);
}

.gh-navigation.has-accent-color,
.gh-footer.has-accent-color {
    background-color: rgba(31, 32, 35, 0.95) !important;
}

.gh-navigation-logo,
.gh-footer-logo {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gh-navigation-menu a,
.gh-footer-menu a {
    color: var(--ps-text-muted);
}

.gh-navigation-menu a:hover,
.gh-footer-menu a:hover {
    color: var(--ps-text);
}

.gh-card,
.gh-post-feed .gh-card,
.gh-featured-feed .gh-card {
    background: var(--ps-bg-3);
    border: 1px solid var(--ps-border);
    border-radius: 1rem;
    transition: background-color 0.2s ease;
}

.gh-card:hover {
    background: var(--ps-bg-3-hover);
}

.gh-card-title,
.gh-article-title,
.gh-header.is-classic .gh-header-title,
h1, h2, h3, h4 {
    color: var(--ps-text);
}

.gh-card-excerpt,
.gh-article-excerpt,
.gh-header.is-classic .gh-header-description,
.gh-footer-signup-subhead,
.gh-article-meta,
.gh-footer-copyright {
    color: var(--ps-text-muted);
}

.gh-header {
    background: linear-gradient(180deg, var(--ps-bg-1) 0%, var(--ps-bg-2) 100%);
}

.gh-header.has-background-image::before {
    background: linear-gradient(180deg, rgba(31, 32, 35, 0.88) 0%, rgba(38, 39, 43, 0.96) 100%);
}

.gh-content {
    color: var(--ps-text-muted);
}

.gh-content strong,
.gh-content b {
    color: var(--ps-text);
}

.gh-content a {
    color: var(--ps-secondary);
}

.gh-content pre,
.gh-content code {
    background: var(--ps-bg-1);
    border: 1px solid var(--ps-border);
    border-radius: 0.5rem;
}

.gh-content pre {
    padding: 1rem 1.25rem;
}

.gh-content :not(pre) > code {
    padding: 0.15rem 0.4rem;
}

.gh-content blockquote {
    border-left: 3px solid var(--ps-primary);
    color: var(--ps-text-muted);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.75rem 1rem;
}

.gh-tag,
.gh-article-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--ps-secondary);
    border-radius: 999px;
}

.gh-form,
.gh-form-input {
    background: var(--ps-bg-3);
    border-color: var(--ps-border);
    color: var(--ps-text);
}

.gh-footer-signup-header {
    color: var(--ps-text);
}

.gh-footer-copyright a {
    color: var(--ps-text-muted);
}

.gh-article-header,
.gh-page-header {
    background: var(--ps-bg-2);
}

.gh-search-input,
input[type="search"],
input[type="email"],
input[type="text"] {
    background: var(--ps-bg-3);
    border-color: var(--ps-border);
    color: var(--ps-text);
}

.gh-search-input::placeholder,
input::placeholder {
    color: rgba(174, 178, 183, 0.8);
}

.kg-card.kg-header-card {
    background: var(--ps-bg-3);
}

.gh-powered-by {
    display: none;
}

.gh-footer-copyright {
    font-size: 0.875rem;
}

.gh-navigation-logo img,
.gh-footer-logo img {
    height: 2.5rem;
    width: auto;
}

.gh-ps-nav-link {
    color: var(--ps-secondary) !important;
    font-weight: 600;
}

.gh-ps-nav-link:hover {
    color: var(--ps-text) !important;
}
