/*
Theme Name: NavForge
Theme URI: https://navforge.app
Description: NavForge motorcycle navigation — dark theme child of GeneratePress
Author: NavForge
Version: 1.1
Template: generatepress
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --nf-bg:          #1E2229;
  --nf-bg2:         #262B33;
  --nf-card:        #2A2F38;
  --nf-border:      #3A3F47;
  --nf-text:        #E8E8E8;
  --nf-muted:       #9CA3AF;
  --nf-accent:      #39FF14;
  --nf-pink:        #FF2D7B;
  --nf-warn-bg:     #44200C;
  --nf-warn-border: #F97316;
  --nf-warn-text:   #FBBF24;
  --nf-curve-low:   #FBBF24;
  --nf-curve-mid:   #F97316;
  --nf-curve-high:  #EF4444;
}

/* ============================================================
   GLOBAL RESET — DARK BACKGROUND
   ============================================================ */
html, body,
.site,
.site-content,
#page,
#content,
.inside-site-inner,
.site-inner,
.content-area {
  background-color: var(--nf-bg) !important;
  color: var(--nf-text) !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 16px;
  line-height: 1.7;
}

a { color: var(--nf-accent); text-decoration: none; }
a:hover { text-decoration: underline; opacity: 0.85; }

h1, h2, h3, h4, h5, h6 { color: var(--nf-text); }

p { color: var(--nf-text); }

img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */
.site-header,
.site-header .inside-header {
  background-color: var(--nf-bg) !important;
  border-bottom: 1px solid var(--nf-border);
}

.main-navigation,
.main-navigation .inside-navigation {
  background-color: var(--nf-bg) !important;
}

/* Site title / logo */
.site-title a,
.site-title a:visited {
  color: var(--nf-accent) !important;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}

.site-description { color: var(--nf-muted) !important; font-size: 0.85rem; }

/* Nav links */
.main-navigation ul li a,
.main-navigation ul li a:visited {
  color: var(--nf-muted) !important;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--nf-accent) !important;
  background: transparent !important;
}

/* Download link in nav — highlight it */
.main-navigation ul li a[href*="/beta/"] {
  color: var(--nf-accent) !important;
  border: 1px solid var(--nf-accent);
  border-radius: 6px;
  padding: 0.4rem 0.85rem !important;
}

/* Mobile toggle */
.menu-toggle,
button.menu-toggle {
  color: var(--nf-text) !important;
  background: transparent !important;
  border: 1px solid var(--nf-border) !important;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.content-area,
.entry-content,
.page-content,
.post-content {
  background: var(--nf-bg) !important;
  color: var(--nf-text);
}

/* Remove GP's white article background */
article.page,
article.post,
article.road_page,
article.adventure_route {
  background: var(--nf-bg) !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.inside-article { padding: 0 !important; }

/* Page titles */
.entry-title,
.page-title {
  color: var(--nf-text) !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
.footer-bar,
.site-footer .inside-footer {
  background-color: var(--nf-bg2) !important;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-muted) !important;
  font-size: 0.85rem;
}

.site-footer a,
.footer-bar a {
  color: var(--nf-muted) !important;
}

.site-footer a:hover { color: var(--nf-accent) !important; }

/* ============================================================
   SIDEBAR (disabled — full width layout)
   ============================================================ */
.sidebar { display: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.nf-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.nf-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--nf-text);
}

.nf-hero .subtitle {
  font-size: 1.15rem;
  color: var(--nf-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--nf-accent);
  color: var(--nf-bg) !important;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  display: inline-block;
  border: 1px solid var(--nf-border);
  color: var(--nf-text) !important;
  padding: 0.8rem 2.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none !important;
  transition: border-color 0.2s;
}

.btn-secondary:hover { border-color: var(--nf-accent); }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.nf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.nf-card {
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.nf-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--nf-text);
}

.nf-card p {
  color: var(--nf-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem 2rem;
  background: var(--nf-bg2);
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--nf-accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--nf-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   MAP EMBED
   ============================================================ */
.map-embed {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nf-border);
  background: var(--nf-card);
}

/* ============================================================
   ROUTE COMPARISON
   ============================================================ */
.route-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: 1040px;
  margin: 0 auto;
}

.comparison-panel h4 {
  color: var(--nf-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* ============================================================
   ROAD RANKINGS
   ============================================================ */
.nf-road-list { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

.road-ranking {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--nf-border);
}

.road-ranking .rank {
  font-weight: 700;
  color: var(--nf-accent);
  min-width: 2.25rem;
  font-size: 0.9rem;
}

.road-ranking .name {
  flex: 1;
  color: var(--nf-text);
  font-size: 0.95rem;
}

.road-ranking .meta {
  color: var(--nf-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.road-ranking .score {
  color: var(--nf-curve-high);
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 2.5rem;
  text-align: right;
}

/* ============================================================
   ARCHIVE GRID (road_page + adventure_route listings)
   ============================================================ */
.nf-archive-header {
  padding: 3rem 1.5rem 2rem;
  max-width: 1040px;
  margin: 0 auto;
}

.nf-archive-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.nf-archive-header p  { color: var(--nf-muted); font-size: 1rem; margin: 0; }

.nf-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.nf-archive-card {
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none !important;
  display: block;
  transition: border-color 0.2s;
}

.nf-archive-card:hover { border-color: var(--nf-accent); }

.nf-archive-card .card-region {
  font-size: 0.75rem;
  color: var(--nf-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.nf-archive-card h3 {
  font-size: 1rem;
  color: var(--nf-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.nf-archive-card .card-meta {
  font-size: 0.82rem;
  color: var(--nf-muted);
}

.nf-difficulty-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.nf-difficulty-badge.easy   { background: #1a3a1a; color: #4ade80; }
.nf-difficulty-badge.medium { background: #3a2a00; color: #FBBF24; }
.nf-difficulty-badge.hard   { background: #3a0000; color: #f87171; }
.nf-difficulty-badge.extreme{ background: #2a0020; color: #e879f9; }

/* ============================================================
   ADVENTURE ROUTE SINGLE
   ============================================================ */
.nf-route-header {
  padding: 3rem 1.5rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.nf-route-header h1 { font-size: 2.25rem; margin-bottom: 1rem; }

.nf-route-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.nf-route-stat { text-align: center; }

.nf-route-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--nf-accent);
}

.nf-route-stat-label {
  font-size: 0.75rem;
  color: var(--nf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.nf-route-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ============================================================
   FUEL WARNING
   ============================================================ */
.fuel-warning {
  background: var(--nf-warn-bg);
  border: 1px solid var(--nf-warn-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--nf-warn-text);
  font-size: 0.9rem;
}

/* ============================================================
   FUEL TABLE
   ============================================================ */
.fuel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.fuel-table th {
  background: var(--nf-card);
  color: var(--nf-muted);
  font-weight: 600;
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--nf-border);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fuel-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--nf-border);
  color: var(--nf-text);
}

.fuel-table tr:last-child td { border-bottom: none; }

/* ============================================================
   PRICING
   ============================================================ */
.nf-pricing {
  max-width: 840px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.nf-pricing h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.nf-pricing > p { color: var(--nf-muted); margin-bottom: 2.5rem; }

.nf-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.pricing-card .price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--nf-accent);
  margin: 0.5rem 0 1rem;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--nf-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: var(--nf-muted);
  font-size: 0.9rem;
}

.pricing-card ul li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--nf-border);
}

.pricing-card ul li::before {
  content: "✓ ";
  color: var(--nf-accent);
  font-weight: 700;
}

.pricing-card.featured {
  border: 2px solid var(--nf-accent) !important;
}

.pricing-badge {
  display: inline-block;
  background: var(--nf-accent);
  color: var(--nf-bg);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.nf-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.nf-section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nf-section-sub {
  text-align: center;
  color: var(--nf-muted);
  margin-bottom: 2rem;
}

.nf-cta-band {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--nf-bg2);
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
}

.nf-cta-band h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.nf-cta-band p  { color: var(--nf-muted); margin-bottom: 1.5rem; }

/* ============================================================
   BLOG
   ============================================================ */
.nf-blog-card {
  background: var(--nf-card);
  border: 1px solid var(--nf-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.nf-blog-card .post-meta {
  font-size: 0.8rem;
  color: var(--nf-muted);
  margin-bottom: 0.4rem;
}

.nf-blog-card h2 { font-size: 1.15rem; margin: 0 0 0.5rem; }
.nf-blog-card h2 a { color: var(--nf-text) !important; }
.nf-blog-card h2 a:hover { color: var(--nf-accent) !important; text-decoration: none; }
.nf-blog-card p { color: var(--nf-muted); font-size: 0.9rem; margin: 0; }

.nf-tag {
  display: inline-block;
  background: var(--nf-bg2);
  color: var(--nf-accent);
  border: 1px solid var(--nf-border);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-right: 0.4rem;
}

/* ============================================================
   GP OVERRIDES — remove default borders/shadows
   ============================================================ */
.inside-article,
.inside-right-sidebar,
.inside-left-sidebar {
  padding: 0 !important;
}

.separate-containers .inside-article,
.separate-containers .inside-right-sidebar,
.separate-containers .inside-left-sidebar,
.separate-containers .widget,
.one-container .inside-article {
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--nf-bg) !important;
}

.entry-header { padding: 0 !important; background: transparent !important; }

/* GP container width */
.grid-container,
.inside-header,
.inside-navigation,
.inside-footer {
  max-width: 1200px;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nf-hero { padding: 3rem 1rem 2rem; }
  .nf-pricing-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; gap: 1.5rem; align-items: center; }
  .route-comparison { grid-template-columns: 1fr; }
  .nf-route-stats { grid-template-columns: repeat(2, 1fr); }
  .nf-archive-grid { grid-template-columns: 1fr; }
}
