/* ========================================
   SPOKE & SPARK - Charcoal & Electric Blue
   Colour palette derived from brand logo
   ======================================== */

:root {
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #64B5F6;
  --secondary: #1E272E;
  --accent: #42A5F5;
  --dark: #121920;
  --dark-card: #1A2332;
  --charcoal: #2D3436;
  --light: #F0F2F5;
  --text: #D8DEE4;
  --text-muted: #7F8C9B;
  --gradient-car: linear-gradient(135deg, #2D3436, #1976D2);
  --gradient-cycle: linear-gradient(135deg, #1976D2, #42A5F5);
  --border-radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 25, 32, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(33, 150, 243, 0.12);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
}

.logo-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark-card);
  border: 1px solid rgba(33, 150, 243, 0.15);
  border-radius: var(--border-radius);
  padding: 0.75rem 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  margin-top: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  background: rgba(33, 150, 243, 0.1);
}

.dropdown-menu a::after {
  display: none;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--light);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO (Homepage) ---- */
.hero-split {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.hero-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex var(--transition);
}

.hero-panel:hover {
  flex: 1.15;
}

.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity var(--transition);
}

.hero-cars::before {
  background: linear-gradient(135deg, rgba(30, 39, 46, 0.88), rgba(25, 118, 210, 0.75));
}

.hero-cycling::before {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.85), rgba(66, 165, 245, 0.75));
}

.hero-panel:hover::before {
  opacity: 0.9;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hero-panel:hover .hero-bg {
  transform: scale(1.05);
}

.hero-cars .hero-bg {
  background-image: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=1200&q=80&fit=crop');
}

.hero-cycling .hero-bg {
  background-image: url('https://images.unsplash.com/photo-1541625602330-2277a4c46182?w=1200&q=80&fit=crop');
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero-icon {
  margin-bottom: 1.5rem;
}

.hero-icon svg {
  width: 72px;
  height: 72px;
  fill: #fff;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.3));
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 400px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero-btn:hover {
  background: rgba(33, 150, 243, 0.3);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.25);
}

.hero-btn .arrow {
  transition: transform var(--transition);
}

.hero-btn:hover .arrow {
  transform: translateX(4px);
}

/* Divider line between hero panels */
.hero-divider {
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 70px;
  position: relative;
  z-index: 3;
}

/* ---- SECTION HERO (for Cars / Cycling landing pages) ---- */
.section-hero {
  padding: 10rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-hero.cars-hero {
  background: var(--gradient-car);
}

.section-hero.cycling-hero {
  background: var(--gradient-cycle);
}

.section-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.section-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.section-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section-nav a {
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
}

.section-nav a:hover,
.section-nav a.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

/* ---- CONTENT SECTIONS ---- */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-section h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.content-section h2.cars-title {
  color: var(--light);
}

.content-section h2.cycling-title {
  color: var(--primary-light);
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--dark-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(33, 150, 243, 0.3);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-image-wrapper {
  overflow: hidden;
  position: relative;
}

.card-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--dark-card));
  pointer-events: none;
}

.card-body {
  padding: 1.5rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.tag-review {
  background: rgba(33, 150, 243, 0.15);
  color: var(--primary);
}

.tag-news {
  background: rgba(100, 181, 246, 0.15);
  color: var(--primary-light);
}

.tag-comparison {
  background: rgba(33, 150, 243, 0.1);
  color: var(--accent);
}

.card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--light);
  line-height: 1.3;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-rating {
  color: #FFD700;
  font-weight: 700;
}

.read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 0.6rem;
}

/* ---- FEATURED STRIP ---- */
.featured-strip {
  background: var(--dark-card);
  padding: 3rem 2rem;
  margin: 2rem 0;
  border-top: 3px solid var(--primary);
}

.featured-strip .content-section {
  padding: 0;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  max-width: 300px;
}

.footer-col h4 {
  color: var(--light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- ARTICLE PAGE ---- */
.article-page {
  padding-top: 70px;
}

.article-loading,
.article-not-found {
  text-align: center;
  padding: 8rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.article-not-found h1 {
  font-size: 2rem;
  color: var(--light);
  margin-bottom: 1rem;
}

.article-not-found a {
  color: var(--primary);
  text-decoration: underline;
}

.article-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  max-height: 550px;
  overflow: hidden;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, var(--dark) 100%);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.article-header {
  margin-top: -4rem;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

.article-header .card-tag {
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--light);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-rating {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.1rem;
}

.article-rating .star {
  font-size: 1.2rem;
}

.article-body {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--light);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.5px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  margin: 2rem 0 0.75rem;
}

.article-body strong {
  color: var(--light);
  font-weight: 700;
}

.article-body em {
  color: var(--primary-light);
  font-style: italic;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  transition: gap var(--transition);
}

.back-link:hover {
  gap: 0.8rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
  }

  .hero-divider {
    width: 100%;
    height: 2px;
    margin-top: 0;
  }

  .hero-panel {
    min-height: 50vh;
  }

  .hero-panel:hover {
    flex: 1;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .section-hero h1 {
    font-size: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-hero {
    height: 40vh;
    min-height: 250px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    border-bottom: 1px solid rgba(33, 150, 243, 0.12);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    margin-top: 0.5rem;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.03);
    border: none;
  }

  .logo-tagline {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .section-hero h1 {
    font-size: 2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .content-section {
    padding: 2.5rem 1rem;
  }

  .article-header h1 {
    font-size: 1.6rem;
  }

  .article-container {
    padding: 0 1rem 3rem;
  }

  .article-body {
    font-size: 1rem;
  }
}
