/*
Theme Name: GripeNation
Theme URI: https://gripenation.com
Author: GripeNation
Author URI: https://gripenation.com
Description: Investigative journalism theme for reporting on individuals and businesses — scams, fraud, and misconduct.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gripenation
Tags: news, dark, investigative, journalism, blog
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #080808;
  --surface: #0e0e0e;
  --surface-2: #141414;
  --surface-3: #1c1c1c;
  --border: #222;
  --primary: #8b1515;
  --accent: #7a8e9e;
  --text: #e6e2dc;
  --text-muted: #868686;
  --text-subtle: #4d4d4d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
main { flex: 1; }

/* ── TOPBAR ── */
.gn-topbar { background: var(--primary); padding: 6px 16px; text-align: center; }
.gn-topbar p { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; }

/* ── HEADER ── */
.gn-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.gn-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gn-logo { display: flex; flex-direction: column; text-decoration: none; }
.gn-logo-name { font-family: 'Playfair Display', Georgia, serif; font-size: 2.25rem; font-weight: 900; color: var(--primary); line-height: 1; }
.gn-logo-sub { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.gn-header-nav { display: flex; align-items: center; gap: 24px; }
.btn-primary {
  background: var(--primary); color: #fff !important; padding: 8px 16px;
  border-radius: 2px; font-size: 13px; font-weight: 700;
  transition: opacity .2s; display: inline-block;
}
.btn-primary:hover { opacity: .85; }
.btn-ghost { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.btn-ghost:hover { color: var(--text); }

/* ── NAVIGATION ── */
.gn-nav-wrap { border-top: 1px solid var(--border); overflow-x: auto; }
.gn-nav { max-width: 1280px; margin: 0 auto; }
.gn-nav ul { padding: 0 16px; display: flex; list-style: none; white-space: nowrap; }
.gn-nav ul li a {
  display: block; padding: 12px 16px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); transition: color .2s;
}
.gn-nav ul li a:hover,
.gn-nav ul li.current-menu-item > a,
.gn-nav ul li.current-cat > a { color: var(--text); }

/* ── TICKER ── */
.gn-ticker { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 8px 0; overflow: hidden; }
.gn-ticker-inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.gn-breaking { background: var(--primary); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; white-space: nowrap; flex-shrink: 0; }
.gn-ticker-wrap { flex: 1; overflow: hidden; white-space: nowrap; }
.gn-ticker-text { display: inline-block; animation: gn-ticker 40s linear infinite; font-size: 13px; font-weight: 600; color: var(--text-muted); }
@keyframes gn-ticker { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ── LAYOUT ── */
.gn-container { max-width: 1280px; margin: 0 auto; padding: 32px 16px; }
.gn-grid-main { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .gn-grid-main { grid-template-columns: 2fr 1fr; } }
.gn-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .gn-grid-2 { grid-template-columns: 1fr 1fr; } }
.gn-grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .gn-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .gn-grid-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ── SECTION HEADER ── */
.gn-section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.gn-section-bar { width: 4px; height: 24px; background: var(--primary); flex-shrink: 0; }
.gn-section-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* ── SUBJECT PILL ── */
.gn-subject-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px;
  background: #1a0a0a; color: #c97070; border: 1px solid #2e1010; margin-bottom: 10px;
}
.gn-subject-pill.company { background: #0a0f1a; color: #6b8db5; border-color: #101828; }

/* ── BADGES ── */
.gn-badge-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.gn-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; background: #181818; color: var(--accent); border: 1px solid #252525; }
.gn-badge-featured { background: var(--primary); color: #fff !important; border-color: var(--primary); }

/* ── CARDS ── */
.gn-card-featured {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 2px; transition: border-color .2s; display: block;
}
.gn-card-featured:hover { border-color: #333; }
.gn-card-featured-body { padding: 28px 32px; }
.gn-card-title-lg { font-size: 1.75rem; font-weight: 900; margin-bottom: 12px; color: var(--text); transition: color .2s; line-height: 1.2; }
.gn-card-featured:hover .gn-card-title-lg { color: #f5f0e8; }
.gn-card-summary-full { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; line-height: 1.7; }

.gn-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 2px; padding: 20px; transition: border-color .2s; display: block; margin-bottom: 16px;
}
.gn-card:last-child { margin-bottom: 0; }
.gn-card:hover { border-color: #333; }
.gn-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); line-height: 1.35; transition: color .2s; }
.gn-card:hover .gn-card-title { color: #f5f0e8; }
.gn-card-summary { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gn-meta { font-size: 11px; color: var(--text-subtle); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gn-meta a { color: var(--text-subtle); }
.gn-meta a:hover { color: var(--text-muted); }

/* ── SIDEBAR ── */
.gn-sidebar-box { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 20px; margin-bottom: 24px; }
.gn-sidebar-box.highlighted { background: var(--surface-2); border-color: var(--primary); }
.gn-sidebar-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 16px; }

/* WP Widget overrides */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 20px; margin-bottom: 24px; }
.widget-title { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.widget ul { list-style: none; }
.widget ul li { border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { display: block; padding: 8px 0; font-size: 13px; color: var(--text-muted); transition: color .2s; }
.widget ul li a:hover { color: var(--text); }

/* Category list with counts */
.gn-cat-list { list-style: none; }
.gn-cat-list li { border-bottom: 1px solid var(--border); }
.gn-cat-list li:last-child { border-bottom: none; }
.gn-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 13px; color: var(--text-muted); transition: color .2s; }
.gn-cat-list a:hover { color: var(--text); }
.gn-cat-count { font-size: 11px; background: var(--surface-2); color: var(--text-subtle); padding: 2px 6px; border-radius: 2px; }

/* ── SUBJECT SIDEBAR BOX ── */
.gn-subject-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 2px; padding: 20px; margin-bottom: 24px; }
.gn-subject-box-type { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 6px; }
.gn-subject-box-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.gn-subject-fact { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; display: flex; gap: 8px; }
.gn-subject-fact strong { color: var(--text-subtle); min-width: 72px; flex-shrink: 0; }

/* ── ARTICLE ── */
.gn-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-subtle); margin-bottom: 24px; flex-wrap: wrap; }
.gn-breadcrumb a:hover { color: var(--text); }
.gn-article-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .gn-article-grid { grid-template-columns: 2fr 1fr; } }
.gn-article-h1 { font-size: 2.1rem; font-weight: 900; margin-bottom: 16px; line-height: 1.15; }
@media (min-width: 768px) { .gn-article-h1 { font-size: 2.6rem; } }
.gn-article-deck { font-size: 1.05rem; color: var(--text-muted); border-left: 4px solid var(--primary); padding-left: 16px; margin-bottom: 24px; line-height: 1.7; }
.gn-byline { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; color: var(--text-subtle); padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.gn-byline strong { color: var(--text-muted); }
.gn-source-notice { background: var(--surface-2); border: 1px solid var(--border); border-radius: 2px; padding: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.6; }
.gn-source-notice strong { color: var(--accent); }
.gn-source-notice a { color: var(--primary); text-decoration: underline; }

/* ── PROSE ── */
.gn-prose { color: var(--text); }
.gn-prose h2 { font-size: 1.4rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; border-left: 4px solid var(--primary); padding-left: 16px; }
.gn-prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .75rem; }
.gn-prose p { margin-bottom: 1.25rem; color: #d1d5db; font-size: 1.0625rem; line-height: 1.8; }
.gn-prose strong { color: var(--text); font-weight: 600; }
.gn-prose ul { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.gn-prose ul li { color: #d1d5db; padding: .25rem 0 .25rem 1.5rem; position: relative; font-size: 1.0625rem; line-height: 1.8; }
.gn-prose ul li::before { content: '›'; color: var(--primary); font-weight: 700; position: absolute; left: 0; }
.gn-prose blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--surface-2); font-style: italic; color: #d1d5db; }
.gn-prose a { color: var(--primary); text-decoration: underline; }

/* ── TAGS ── */
.gn-tags { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.gn-tags-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); margin-right: 12px; }
.gn-tag { display: inline-block; font-size: 11px; padding: 4px 8px; border-radius: 2px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); margin: 0 4px 6px 0; }
.gn-tag:hover { color: var(--text); }

/* WP tag cloud override */
.tagcloud a { display: inline-block; font-size: 11px !important; padding: 4px 8px; border-radius: 2px; background: var(--surface-2); color: var(--text-muted) !important; border: 1px solid var(--border); margin: 0 4px 6px 0; transition: color .2s; }
.tagcloud a:hover { color: var(--text) !important; }

/* ── SHARE ROW ── */
.gn-share-row { background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 20px; margin-top: 24px; }
.gn-share-row p { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.gn-share-links { display: flex; flex-wrap: wrap; gap: 12px; }
.gn-share-btn { font-size: 11px; font-weight: 700; padding: 8px 16px; border-radius: 2px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); transition: opacity .2s; display: inline-block; }
.gn-share-btn:hover { opacity: .8; color: var(--text); }
.gn-share-btn.primary { background: var(--primary); color: #fff !important; border-color: var(--primary); }

/* ── RELATED POSTS ── */
.gn-related-item { padding: 0 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.gn-related-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.gn-related-title { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text); transition: color .2s; display: block; margin-bottom: 4px; font-family: 'Playfair Display', Georgia, serif; }
.gn-related-title:hover { color: #f5f0e8; }

/* ── PAGE TEMPLATES ── */
.gn-page-header { margin-bottom: 48px; }
.gn-page-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.gn-page-h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 16px; line-height: 1.15; }
.gn-page-lead { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; }
.gn-section-h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; border-left: 4px solid var(--primary); padding-left: 16px; }
.gn-prose-block p { font-size: 15px; color: #d1d5db; line-height: 1.8; margin-bottom: 16px; }
.gn-check-list { list-style: none; margin-top: 16px; }
.gn-check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: #d1d5db; margin-bottom: 8px; }
.gn-check-list .icon { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.gn-notice-box { border-radius: 2px; padding: 20px; background: var(--surface); border: 1px solid var(--accent); margin-bottom: 32px; }
.gn-notice-box h2 { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.gn-tip-items { list-style: none; }
.gn-tip-items li { display: flex; gap: 8px; font-size: 13px; color: #d1d5db; margin-bottom: 8px; }
.gn-tip-items li::before { content: '·'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.gn-tip-email-block { text-align: center; padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 2px; margin-bottom: 24px; }
.gn-tip-email-block .icon { font-size: 2.5rem; margin-bottom: 16px; }
.gn-tip-email-block h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.gn-tip-email-block p { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.gn-tip-email-block small { display: block; font-size: 11px; color: var(--text-subtle); margin-top: 12px; }
.gn-email-btn { display: inline-block; background: var(--primary); color: #fff !important; padding: 12px 24px; border-radius: 2px; font-size: 15px; font-weight: 700; transition: opacity .2s; }
.gn-email-btn:hover { opacity: .85; }

/* ── NARROW WRAPPER ── */
.gn-narrow { max-width: 768px; margin: 0 auto; }

/* ── FOOTER ── */
.gn-footer { background: var(--surface); border-top: 1px solid var(--border); }
.gn-footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 16px; }
.gn-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 768px) { .gn-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.gn-footer-brand-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.875rem; font-weight: 900; color: var(--primary); }
.gn-footer-brand-desc { font-size: 13px; color: var(--text-muted); margin: 12px 0 16px; line-height: 1.6; }
.gn-footer-col-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: 16px; }
.gn-footer-links { list-style: none; }
.gn-footer-links li { margin-bottom: 8px; }
.gn-footer-links a { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.gn-footer-links a:hover { color: var(--text); }
.gn-footer-notice { background: var(--surface-2); border-radius: 4px; padding: 12px; font-size: 11px; color: var(--text-muted); margin-top: 24px; }
.gn-footer-notice strong { color: var(--accent); display: block; margin-bottom: 4px; }
.gn-footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--text-subtle); }
@media (min-width: 768px) { .gn-footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ── WP PAGINATION ── */
.gn-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.gn-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); background: var(--surface); border-radius: 2px; transition: all .2s; }
.gn-pagination .page-numbers:hover { color: var(--text); border-color: #333; }
.gn-pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.navigation.posts-navigation { margin-top: 32px; }
.navigation.posts-navigation .nav-links { display: flex; justify-content: space-between; gap: 16px; }
.navigation.posts-navigation a { display: block; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); border-radius: 2px; transition: all .2s; }
.navigation.posts-navigation a:hover { color: var(--text); border-color: #333; }

/* ── SEARCH FORM ── */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; font-size: 13px; border-radius: 2px; outline: none; }
.search-form input[type="search"]:focus { border-color: var(--primary); }
.search-form button { background: var(--primary); color: #fff; border: none; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 2px; }

/* ── COMMENTS ── */
#comments { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
#comments h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }
.comment-list { list-style: none; }
.comment-body { background: var(--surface); border: 1px solid var(--border); padding: 16px; border-radius: 2px; margin-bottom: 16px; }
.comment-author { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: #d1d5db; line-height: 1.7; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 10px 12px; font-size: 14px; border-radius: 2px; outline: none; margin-bottom: 12px; }
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--primary); }
.comment-form input[type="submit"] { background: var(--primary); color: #fff; border: none; padding: 10px 20px; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 2px; }

/* ── UTILITY ── */
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }
.pt-6 { padding-top: 24px; }
