/* Red Volcano SEO Pages - Shared Styles */
/* Matches redvolcano.io brand: dark theme, IBM Plex Sans, #a8212c accent */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  --rv-red: #a8212c;
  --rv-red-light: #c93a45;
  --rv-red-dark: #8a1a23;
  --rv-black: #000000;
  --rv-bg: #0a0a0a;
  --rv-bg-card: #111111;
  --rv-bg-card-hover: #1a1a1a;
  --rv-bg-table-header: #161616;
  --rv-bg-table-row: #0f0f0f;
  --rv-bg-table-row-alt: #131313;
  --rv-border: #222222;
  --rv-border-light: #333333;
  --rv-text: #e8e8e8;
  --rv-text-muted: #999999;
  --rv-text-dim: #666666;
  --rv-white: #ffffff;
  --rv-blue: #6772E5;
  --rv-green: #2ecc71;
  --rv-orange: #e67e22;
  --rv-purple: #9b59b6;
  --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-weight: 300;
  background: var(--rv-bg);
  color: var(--rv-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--rv-red-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rv-white); }

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

/* ===== HEADER ===== */
.rv-header {
  background: var(--rv-black);
  border-bottom: 1px solid var(--rv-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.rv-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.rv-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--rv-white);
  letter-spacing: -0.5px;
}

.rv-logo span { color: var(--rv-red); }

.rv-nav { display: flex; gap: 8px; align-items: center; }

.rv-nav a {
  color: var(--rv-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.rv-nav a:hover { color: var(--rv-white); background: rgba(255,255,255,0.05); }
.rv-nav a.active { color: var(--rv-red-light); }

.rv-nav-cta {
  background: var(--rv-red) !important;
  color: var(--rv-white) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
}

.rv-nav-cta:hover { background: var(--rv-red-light) !important; }

/* Mobile nav */
.rv-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--rv-white);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .rv-mobile-toggle { display: block; }
  .rv-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--rv-black);
    border-bottom: 1px solid var(--rv-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .rv-nav.open { display: flex; }
  .rv-nav a { padding: 12px 16px; }
}

/* ===== BREADCRUMB ===== */
.rv-breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--rv-text-dim);
}

.rv-breadcrumb a { color: var(--rv-text-muted); }
.rv-breadcrumb a:hover { color: var(--rv-white); }
.rv-breadcrumb span { margin: 0 8px; color: var(--rv-text-dim); }

/* ===== HERO ===== */
.rv-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 40px;
}

.rv-hero h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--rv-white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.rv-hero-subtitle {
  font-size: 18px;
  color: var(--rv-text-muted);
  line-height: 1.6;
  max-width: 700px;
}

.rv-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--rv-green);
  margin-top: 16px;
  padding: 6px 14px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.15);
  border-radius: 20px;
}

/* ===== KEY STATS BOX ===== */
.rv-stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rv-stat-card {
  background: var(--rv-bg-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.rv-stat-card:hover { border-color: var(--rv-border-light); }

.rv-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--rv-white);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.rv-stat-value.red { color: var(--rv-red-light); }

.rv-stat-label {
  font-size: 13px;
  color: var(--rv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .rv-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .rv-stats-grid { grid-template-columns: 1fr; }
}

/* ===== CONTENT SECTIONS ===== */
.rv-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.rv-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rv-border);
}

.rv-section-icon {
  width: 40px;
  height: 40px;
  background: rgba(168, 33, 44, 0.1);
  border: 1px solid rgba(168, 33, 44, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.rv-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--rv-white);
}

.rv-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--rv-white);
  margin: 24px 0 12px;
}

.rv-section p {
  color: var(--rv-text);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ===== DATA TABLE ===== */
.rv-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rv-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.rv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rv-table thead th {
  background: var(--rv-bg-table-header);
  color: var(--rv-text-muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--rv-border);
  position: sticky;
  top: 0;
}

.rv-table tbody tr {
  border-bottom: 1px solid var(--rv-border);
  transition: background 0.15s;
}

.rv-table tbody tr:nth-child(odd) { background: var(--rv-bg-table-row); }
.rv-table tbody tr:nth-child(even) { background: var(--rv-bg-table-row-alt); }
.rv-table tbody tr:hover { background: var(--rv-bg-card-hover); }
.rv-table tbody tr:last-child { border-bottom: none; }

.rv-table td {
  padding: 12px 16px;
  color: var(--rv-text);
  white-space: nowrap;
}

.rv-table td:first-child { color: var(--rv-text-dim); font-weight: 500; }

.rv-table td a { color: var(--rv-text); font-weight: 400; }
.rv-table td a:hover { color: var(--rv-red-light); }

.rv-table .domain {
  font-weight: 500;
  color: var(--rv-white);
}

/* Table rank badge */
.rv-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  color: var(--rv-text-muted);
  background: rgba(255,255,255,0.04);
}

.rv-rank.top3 { color: var(--rv-red-light); background: rgba(168, 33, 44, 0.12); }

/* Tag pills */
.rv-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--rv-text-muted);
  margin: 1px 3px 1px 0;
  white-space: nowrap;
}

.rv-tag.tech { background: rgba(103, 114, 229, 0.12); color: #8b93e8; }
.rv-tag.ssp { background: rgba(168, 33, 44, 0.12); color: var(--rv-red-light); }
.rv-tag.category { background: rgba(155, 89, 182, 0.12); color: #b07cc6; }

/* ===== HORIZONTAL BAR CHART ===== */
.rv-bar-chart { margin-bottom: 24px; }

.rv-bar-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.rv-bar-label {
  flex: 0 0 160px;
  font-size: 13px;
  color: var(--rv-text);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rv-bar-track {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.rv-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rv-red-dark), var(--rv-red));
  border-radius: var(--radius-sm);
  min-width: 2px;
  transition: width 0.6s ease;
}

.rv-bar-value {
  flex: 0 0 60px;
  font-size: 13px;
  font-weight: 500;
  color: var(--rv-text-muted);
}

@media (max-width: 768px) {
  .rv-bar-label { flex: 0 0 100px; font-size: 12px; }
}

/* ===== CTA SECTIONS ===== */
.rv-cta-box {
  background: linear-gradient(135deg, rgba(168, 33, 44, 0.15), rgba(168, 33, 44, 0.05));
  border: 1px solid rgba(168, 33, 44, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.rv-cta-box h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rv-white);
  margin-bottom: 12px;
}

.rv-cta-box p {
  color: var(--rv-text-muted);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rv-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.rv-btn-primary {
  background: var(--rv-red);
  color: var(--rv-white);
}

.rv-btn-primary:hover { background: var(--rv-red-light); color: var(--rv-white); transform: translateY(-1px); }

.rv-btn-secondary {
  background: transparent;
  color: var(--rv-text);
  border: 1px solid var(--rv-border-light);
}

.rv-btn-secondary:hover { border-color: var(--rv-text-muted); color: var(--rv-white); transform: translateY(-1px); }

/* Inline CTA bar */
.rv-cta-inline {
  background: var(--rv-bg-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0;
}

.rv-cta-inline p { margin: 0; font-size: 15px; color: var(--rv-text); }
.rv-cta-inline .rv-btn { padding: 10px 20px; font-size: 13px; white-space: nowrap; }

@media (max-width: 768px) {
  .rv-cta-inline { flex-direction: column; text-align: center; }
  .rv-cta-box { padding: 32px 20px; }
}

/* ===== FAQ SECTION (GEO) ===== */
.rv-faq { margin-top: 48px; }

.rv-faq-item {
  border: 1px solid var(--rv-border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.rv-faq-q {
  width: 100%;
  background: var(--rv-bg-card);
  border: none;
  color: var(--rv-white);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s;
}

.rv-faq-q:hover { background: var(--rv-bg-card-hover); }

.rv-faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--rv-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.rv-faq-item.open .rv-faq-q::after { content: '\2212'; }

.rv-faq-a {
  display: none;
  padding: 0 20px 18px;
  background: var(--rv-bg-card);
  color: var(--rv-text);
  font-size: 14px;
  line-height: 1.7;
}

.rv-faq-item.open .rv-faq-a { display: block; }

/* ===== CROSS-LINKS ===== */
.rv-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.rv-related-card {
  background: var(--rv-bg-card);
  border: 1px solid var(--rv-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
  display: block;
}

.rv-related-card:hover {
  border-color: var(--rv-red);
  background: var(--rv-bg-card-hover);
  color: var(--rv-text);
}

.rv-related-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--rv-white);
  margin-bottom: 6px;
}

.rv-related-card p {
  font-size: 12px;
  color: var(--rv-text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .rv-related { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.rv-footer {
  background: var(--rv-black);
  border-top: 1px solid var(--rv-border);
  margin-top: 64px;
}

.rv-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.rv-footer-brand p {
  font-size: 13px;
  color: var(--rv-text-dim);
  line-height: 1.7;
  margin-top: 12px;
}

.rv-footer h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rv-text-muted);
  margin-bottom: 16px;
}

.rv-footer-links { list-style: none; }

.rv-footer-links li { margin-bottom: 8px; }

.rv-footer-links a {
  font-size: 13px;
  color: var(--rv-text-dim);
  transition: color 0.2s;
}

.rv-footer-links a:hover { color: var(--rv-white); }

.rv-footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--rv-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--rv-text-dim);
}

@media (max-width: 768px) {
  .rv-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .rv-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ===== UTILITY ===== */
.rv-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-red { color: var(--rv-red-light); }
.text-green { color: var(--rv-green); }
.text-muted { color: var(--rv-text-muted); }
.text-white { color: var(--rv-white); }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== DOWNLOAD BUTTON ===== */
.rv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 28px;
  background: var(--rv-red);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}
.rv-download-btn:hover {
  background: var(--rv-red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(168, 33, 44, 0.4);
}

/* ===== MODAL ===== */
.rv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.rv-modal-overlay.open { display: flex; }

.rv-modal {
  position: relative;
  background: var(--rv-bg-card);
  border: 1px solid var(--rv-border-light);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: rv-modal-in 0.25s ease-out;
}
@keyframes rv-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.rv-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--rv-text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.rv-modal-close:hover { color: #fff; }

.rv-modal-icon { font-size: 48px; margin-bottom: 12px; }

.rv-modal h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.rv-modal p {
  color: var(--rv-text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.rv-modal-features {
  text-align: left;
  list-style: none;
  margin: 0 0 20px 0;
  padding: 0;
}
.rv-modal-features li {
  color: var(--rv-text-secondary);
  font-size: 14px;
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}
.rv-modal-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--rv-red-light);
  font-weight: 700;
}
.rv-modal-sub {
  color: var(--rv-text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .rv-modal { padding: 28px 20px; }
  .rv-modal h3 { font-size: 19px; }
}

/* ===== SCHEMA HIDDEN ===== */
.rv-schema { display: none; }

/* ===== PRINT ===== */
@media print {
  .rv-header, .rv-footer, .rv-cta-box, .rv-cta-inline, .rv-nav, .rv-download-btn, .rv-modal-overlay { display: none; }
  body { background: #fff; color: #000; }
  .rv-table { font-size: 10px; }
}
