/*
Theme Name: PredictionWolf
Theme URI: https://predictionwolf.com/
Author: PredictionWolf
Author URI: https://predictionwolf.com/
Description: Editorial-design WordPress theme for prediction market guides and promo code pages. Includes pre-built content for Polymarket, Kalshi, Manifold, and Robinhood. On theme activation, 18 pages are auto-created with verified promo code content. Mobile-responsive with schema.org markup baked in.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: predictionwolf
Tags: editorial, blog, two-columns, custom-colors, custom-menu, featured-images, threaded-comments
*/

:root {
  --paper: #f4f1ea; --paper-warm: #ede8da; --ink: #1a1a1a; --ink-soft: #4a4a4a; --ink-faint: #8a8580;
  --rule: #d9d2c4; --rule-soft: #e8e2d4; --accent: #2d5a3d; --accent-bright: #4a8c5f;
  --highlight: #f5e6a8; --warning-bg: #f9f3e0; --warning-border: #d4b94a; --restricted: #c44545;
  --max-width: 1080px; --reading-width: 720px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.reading { max-width: var(--reading-width); margin: 0 auto; padding: 0 24px; }
.topbar { border-bottom: 1px solid var(--rule); padding: 18px 0; background: var(--paper); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { font-family: 'Instrument Serif', serif; font-size: 24px; }
.brand-name em { font-style: italic; color: var(--accent); }
.topbar nav { display: flex; gap: 4px; align-items: center; }
.topbar nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 14px; font-size: 14px; font-weight: 500; border-radius: 3px; }
.topbar nav a:hover { color: var(--accent); background: var(--rule-soft); }
.topbar nav a.cta { background: var(--ink); color: var(--paper); margin-left: 8px; }
.topbar nav a.cta:hover { background: var(--accent); }
.breadcrumb { font-size: 13px; color: var(--ink-faint); padding: 24px 0 0; }
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }
header.article-head { padding: 24px 0 32px; border-bottom: 1px solid var(--rule); }
.eyebrow { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
h1 { font-family: 'Instrument Serif', serif; font-size: clamp(36px, 6vw, 56px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 20px; }
h1 em { font-style: italic; color: var(--accent); }
.dek { font-size: 19px; line-height: 1.5; color: var(--ink-soft); margin-bottom: 24px; max-width: 600px; }
.byline { display: flex; flex-wrap: wrap; gap: 16px 24px; font-size: 13px; color: var(--ink-faint); align-items: center; }
.byline strong { color: var(--ink); font-weight: 600; }
.verified-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--paper); padding: 4px 10px; border-radius: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.verified-badge::before { content: "●"; color: var(--accent-bright); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.disclosure { margin: 24px 0; padding: 14px 18px; background: var(--warning-bg); border-left: 3px solid var(--warning-border); font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.disclosure strong { color: var(--ink); }
article { padding: 32px 0 40px; }
article p { margin-bottom: 22px; }
article p.lead { font-size: 19px; line-height: 1.55; margin-bottom: 32px; }
article p.lead::first-letter { font-family: 'Instrument Serif', serif; font-size: 64px; float: left; line-height: 0.85; margin: 8px 8px 0 0; color: var(--accent); }
article h2 { font-family: 'Instrument Serif', serif; font-size: 32px; font-weight: 400; line-height: 1.15; margin: 48px 0 16px; letter-spacing: -0.005em; }
article h3 { font-size: 19px; font-weight: 600; margin: 32px 0 12px; }
article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
article a:hover { background: var(--highlight); }
article ul, article ol { margin: 0 0 22px 24px; }
article li { margin-bottom: 8px; }
article strong { font-weight: 600; }
article em { font-style: italic; }
.cta-banner { background: var(--ink); color: var(--paper); padding: 28px 32px; border-radius: 4px; margin: 32px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-banner h4 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; margin-bottom: 6px; color: var(--paper); }
.cta-banner h4 em { font-style: italic; color: var(--highlight); }
.cta-banner p { color: var(--ink-faint); font-size: 14px; margin: 0; }
.cta-banner a { background: var(--highlight); color: var(--ink); padding: 12px 24px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.cta-banner a:hover { background: var(--paper); }
.callout { background: var(--paper-warm); border: 1px solid var(--rule); padding: 24px; border-radius: 4px; margin: 28px 0; }
.callout h3 { margin-top: 0; font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400; color: var(--accent); }
.callout ul { margin: 12px 0 0 20px; }
.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; background: var(--paper-warm); border-radius: 4px; overflow: hidden; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--rule); }
.compare-table th { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 16px; color: var(--accent); background: var(--rule-soft); border-bottom: 2px solid var(--ink); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr.highlight { background: var(--highlight); }
.faq-item { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq-q { font-size: 17px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-family: 'Instrument Serif', serif; font-size: 24px; color: var(--accent); transition: transform 0.2s; }
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.code-card { background: var(--ink); color: var(--paper); padding: 28px; border-radius: 4px; margin: 24px 0; position: relative; overflow: hidden; }
.code-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-bright), var(--highlight), var(--accent-bright)); }
.code-card .platform { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 4px; }
.code-card .bonus-line { font-size: 14px; color: var(--ink-faint); margin-bottom: 16px; }
.code-card .code-pill { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; letter-spacing: 0.05em; padding: 8px 16px; background: rgba(255,255,255,0.08); border: 1px dashed rgba(255,255,255,0.25); border-radius: 3px; margin-right: 8px; margin-bottom: 8px; }
.code-card .claim-btn { display: inline-block; background: var(--highlight); color: var(--ink); padding: 10px 18px; border-radius: 3px; text-decoration: none; font-weight: 600; font-size: 13px; margin-top: 8px; }
.code-card .claim-btn:hover { background: var(--paper); }
.code-card .claim-btn::after { content: " →"; }
.related-section { border-top: 1px solid var(--rule); padding: 48px 0; margin-top: 32px; }
.related-section h3 { font-family: 'Instrument Serif', serif; font-size: 26px; font-weight: 400; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: block; padding: 20px; background: var(--paper-warm); border-radius: 4px; text-decoration: none; color: var(--ink); }
.related-card:hover { background: var(--rule-soft); }
.related-card .cat { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.related-card h4 { font-family: 'Instrument Serif', serif; font-size: 19px; font-weight: 400; line-height: 1.2; }
footer.site-footer { background: var(--paper); border-top: 1px solid var(--rule); padding: 60px 0 40px; font-size: 14px; color: var(--ink-faint); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 380px; }
.footer-col h5 { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink-soft); text-decoration: none; font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.footer-legal a { color: var(--ink-faint); text-decoration: underline; }
.admin-bar .topbar { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 900px) { .related-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .cta-banner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 600px) { .topbar nav a:not(.cta) { display: none; } h1 { font-size: 36px; } article h2 { font-size: 26px; } .footer-grid { grid-template-columns: 1fr; } }
