/* ─────────────────────────────────────────────────────────────────────────────
   PHILOMOTIVE WP — CORE DESIGN SYSTEM STYLESHEET
   Aesthetics: Dark Luxury Automotive Magazine (#0E0E0E canvas, #D50000 accent)
   ───────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --color-bg-dark: #0E0E0E;
  --color-bg-alt: #0a0a0a;
  --color-bg-card: #141414;
  --color-bg-hover: #1c1c1c;
  
  --color-brand-red: #D50000;
  --color-brand-red-hover: #ff1a1a;
  --color-brand-red-glow: rgba(213, 0, 0, 0.25);

  --color-text-main: #FFFFFF;
  --color-text-muted: #999999;
  --color-text-dim: #666666;
  
  --border-light: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-red: rgba(213, 0, 0, 0.3);
}

/* ── RESET & BASICS ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

/* ── TYPOGRAPHY UTILITIES ─────────────────────────────────────────────────── */
.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }
.font-mono  { font-family: var(--font-mono); }

.tag-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 2px 8px;
  font-weight: 500;
  color: var(--color-brand-red);
}

.tag-label-red {
  background-color: var(--color-brand-red);
  color: #ffffff;
}

/* ── CONTAINER & LAYOUT ───────────────────────────────────────────────────── */
.philomotive-container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1024px) {
  .philomotive-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ── SECTION HEADERS ──────────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.section-head-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-head-line {
  height: 1px;
  width: 2rem;
  background-color: var(--color-brand-red);
}

.section-head-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #aaaaaa;
}

.section-head-action {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.section-head-action:hover {
  color: var(--color-brand-red-hover);
}

/* ── LIVE TICKER ───────────────────────────────────────────────────────────── */
.ticker-bar {
  border-bottom: 1px solid var(--border-light);
  background-color: var(--color-bg-alt);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 40px;
}

.ticker-badge {
  background-color: var(--color-brand-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  z-index: 2;
}

.ticker-track-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: ticker-scroll 55s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.ticker-diamond {
  color: var(--color-brand-red);
  font-size: 10px;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── PULSE GRAPHIC ────────────────────────────────────────────────────────── */
.pulse-indicator {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-brand-red);
  opacity: 0.6;
  animation: pulse-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-brand-red);
}

@keyframes pulse-ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ── HEADER & NAVIGATION ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg-dark);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(12px);
}

.header-top-bar {
  border-bottom: 1px solid var(--border-light);
  height: 44px;
  transition: max-height 0.4s ease, opacity 0.4s ease, border 0.4s ease;
  overflow: hidden;
}

.site-header.scrolled .header-top-bar {
  max-height: 0;
  opacity: 0;
  border-bottom: none;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  position: relative;
}

.header-issue-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #777;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-branding {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.branding-title {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.3em;
  color: #fff;
  font-weight: 500;
}

.branding-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5em;
  color: var(--color-brand-red);
  text-transform: uppercase;
  margin-top: 1px;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-social a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #777;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.header-social a:hover {
  color: #fff;
}

.header-nav-bar {
  border-bottom: 1px solid var(--border-light);
  height: 48px;
  display: flex;
  align-items: center;
}

.header-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.scrolled-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 2rem;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-width 0.3s ease;
  white-space: nowrap;
}

.site-header.scrolled .scrolled-logo {
  opacity: 1;
  max-width: 200px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link-item {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link-item:hover, .nav-link-item.active {
  color: #ffffff;
}

.subscribe-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  transition: all 0.2s ease;
}

.subscribe-btn:hover {
  border-color: var(--border-red);
  background-color: rgba(213, 0, 0, 0.1);
  color: #fff;
}

/* Search Modal / Bar */
.search-bar-dropdown {
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #111;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
}

/* Mobile Drawer Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.35s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #fff;
  transition: color 0.2s ease;
}

.mobile-nav-item:hover {
  color: var(--color-brand-red);
}

/* ── HERO SLIDER BLOCK ────────────────────────────────────────────────────── */
.hero-slider-section {
  position: relative;
  min-height: calc(100vh - 92px);
  margin-top: 92px;
  background-color: #000;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: brightness(0.85) contrast(1.1);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.3) 0%, rgba(14,14,14,0.85) 70%, rgba(14,14,14,1) 100%),
              linear-gradient(90deg, rgba(14,14,14,0.8) 0%, transparent 60%);
}

.hero-content-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 9rem;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.score-badge {
  background-color: var(--color-brand-red);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  padding: 2px 10px;
  letter-spacing: 0.1em;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
  max-width: 900px;
}

.hero-subhead {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #ddd;
  font-weight: 300;
  margin-bottom: 1.25rem;
  max-width: 750px;
}

.hero-deck {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #999;
  line-height: 1.6;
  max-width: 650px;
  margin-bottom: 1.75rem;
}

.hero-author-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #777;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hero Thumbnails Bar */
.hero-thumbnails-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background-color: rgba(10, 10, 10, 0.9);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero-thumb-item {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.hero-thumb-item:hover, .hero-thumb-item.active {
  background-color: rgba(255, 255, 255, 0.04);
}

.hero-thumb-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-brand-red);
}

.hero-thumb-category {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-brand-red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.hero-thumb-title {
  font-family: var(--font-serif);
  font-size: 14px;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CAR CARDS & GRID LAYOUTS ─────────────────────────────────────────────── */
.story-card {
  display: grid;
  grid-template-columns: 80px 1fr 180px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}

.story-card:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.story-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: #333;
  font-style: italic;
}

.story-card:hover .story-number {
  color: var(--color-brand-red);
}

.story-headline {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: #fff;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.story-card:hover .story-headline {
  color: #ffffff;
}

.story-img-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 2px;
}

/* ── REVIEW SPOTLIGHT BLOCK ───────────────────────────────────────────────── */
.review-spotlight-card {
  position: relative;
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .review-spotlight-card {
    grid-template-columns: 1fr 1fr;
  }
}

.review-spotlight-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.review-spotlight-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review-score-huge {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  color: var(--color-brand-red);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── CAR COMPARISON SHOOTOUT CARDS ───────────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2rem;
}

.comparison-vs-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.comparison-car-box {
  background-color: var(--color-bg-alt);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.comparison-car-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.comparison-car-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-pill {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888;
  padding: 2px 0;
}

.stat-value {
  color: #fff;
  font-weight: 500;
}

/* ── BRAND FILTER PILLS ────────────────────────────────────────────────────── */
.brand-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-light);
  background-color: var(--color-bg-card);
  color: #aaa;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.brand-pill:hover, .brand-pill.active {
  border-color: var(--color-brand-red);
  color: #ffffff;
  background-color: rgba(213, 0, 0, 0.1);
}

/* ── EVENT CALENDAR TABLE ──────────────────────────────────────────────────── */
.event-row {
  display: grid;
  grid-template-columns: 120px 1fr 180px 100px;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-sans);
}

.event-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-brand-red);
}

.event-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.event-location {
  font-size: 13px;
  color: #777;
}

.hot-badge {
  background-color: var(--color-brand-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  text-transform: uppercase;
  border-radius: 2px;
  letter-spacing: 0.1em;
}

/* ── FOOTER & NEWSLETTER ──────────────────────────────────────────────────── */
.newsletter-box {
  background: linear-gradient(135deg, #181818 0%, #0E0E0E 100%);
  border: 1px solid var(--border-red);
  border-radius: 6px;
  padding: 4rem 2rem;
  text-align: center;
  margin: 5rem 0;
}

.newsletter-input-wrap {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-input {
  flex: 1;
  background-color: #050505;
  border: 1px solid var(--border-light);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.newsletter-submit {
  background-color: var(--color-brand-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 1.75rem;
  transition: background-color 0.2s ease;
}

.newsletter-submit:hover {
  background-color: var(--color-brand-red-hover);
}

.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #666;
}

/* ── SINGLE ARTICLE PAGE SPEC CARDS & SCORE ─────────────────────────────── */
.article-header {
  margin-top: 120px;
  margin-bottom: 3rem;
}

.single-score-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-red);
  padding: 2rem;
  border-radius: 4px;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.single-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-radius: 4px;
  margin: 2.5rem 0;
}

.spec-item-box {
  display: flex;
  flex-direction: column;
}

.spec-item-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
}

.spec-item-val {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
