/* ============================================================
   SEO Test Site — Shared Stylesheet
   Dark / red dev-tool theme
   ============================================================ */

:root {
  --bg:        #090909;
  --bg-card:   #121212;
  --bg-hover:  #1a1a1a;
  --red:       #dc2626;
  --red-dk:    #7f1d1d;
  --orange:    #ea580c;
  --yellow:    #ca8a04;
  --text:      #e5e7eb;
  --muted:     #6b7280;
  --border:    #262626;
  --green:     #16a34a;
  --sidebar-w: 264px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding-top: 86px;    /* banner(32) + nav(54) */
  padding-right: var(--sidebar-w);
  line-height: 1.6;
}

/* ── Dev Banner ───────────────────────────────────────────── */
.dev-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 32px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; font-size: 12px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.dev-banner a {
  color: #fff; text-decoration: none;
  background: rgba(0,0,0,.22); padding: 2px 8px; border-radius: 4px;
}
.dev-banner a:hover { background: rgba(0,0,0,.42); }

/* ── Main Nav ─────────────────────────────────────────────── */
nav.main-nav {
  position: fixed; top: 32px; left: 0; right: var(--sidebar-w); z-index: 200;
  background: #111; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 54px;
  overflow-x: auto; overflow-y: hidden;
}
nav.main-nav::-webkit-scrollbar { height: 3px; }
nav.main-nav::-webkit-scrollbar-thumb { background: var(--border); }

.nav-brand {
  color: var(--red); font-weight: 800; font-size: 13px;
  white-space: nowrap; text-decoration: none; flex-shrink: 0;
  letter-spacing: -.03em;
}
nav.main-nav ul { list-style: none; display: flex; gap: 2px; flex-shrink: 0; }
nav.main-nav a {
  display: block; padding: 5px 9px;
  font-size: 11.5px; color: #9ca3af;
  text-decoration: none; border-radius: 5px; white-space: nowrap;
  transition: background .1s, color .1s;
}
nav.main-nav a:hover  { background: #1e1e1e; color: var(--text); }
nav.main-nav a.active { background: var(--red); color: #fff; font-weight: 600; }

/* ── Issues Sidebar ───────────────────────────────────────── */
.issues-sidebar {
  position: fixed; top: 86px; right: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #0d0d0d; border-left: 1px solid var(--border);
  overflow-y: auto; padding: 14px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.issues-sidebar::-webkit-scrollbar { width: 4px; }
.issues-sidebar::-webkit-scrollbar-thumb { background: var(--border); }

.sidebar-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--red); margin-bottom: 12px;
  display: flex; justify-content: space-between;
}
.sidebar-title span { color: var(--muted); font-weight: 400; }

.issue-row {
  display: flex; gap: 7px; align-items: flex-start;
  padding: 5px 6px; border-radius: 5px; margin-bottom: 3px;
}
.issue-row:hover { background: var(--bg-hover); }
.issue-row .num {
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 3px;
  white-space: nowrap; flex-shrink: 0; margin-top: 1px;
}
.issue-row .num.imp { background: var(--orange); }
.issue-row .num.std { background: var(--yellow); color: #111; }
.issue-row p { font-size: 11px; color: #6b7280; line-height: 1.4; }
.issue-row p b { color: #9ca3af; font-weight: 600; }

/* ── Page Container ───────────────────────────────────────── */
.container { max-width: 860px; margin: 0 auto; padding: 28px 28px 80px; }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero { margin-bottom: 32px; }
.page-hero .eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--red); margin-bottom: 10px;
}
.page-hero h1 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.2; }
.page-hero p { color: var(--muted); font-size: 15px; max-width: 580px; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; margin-bottom: 18px;
}
.card-red  { border-left: 3px solid var(--red); }
.card-orange { border-left: 3px solid var(--orange); }
.card h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.card h3 { font-size: 15px; font-weight: 600; color: #d1d5db; margin: 18px 0 8px; }
.card h4 { font-size: 13px; font-weight: 600; color: #9ca3af; margin: 12px 0 6px; }
.card h5 { font-size: 12px; font-weight: 600; color: #6b7280; margin: 10px 0 4px; }
.card p, .card li { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.card ul, .card ol { padding-left: 20px; margin: 8px 0; }
.card li { margin-bottom: 4px; }
.card a { color: #60a5fa; }

/* ── Inline Issue Badge ───────────────────────────────────── */
.ib {
  display: inline-flex; align-items: center;
  background: var(--red-dk); border: 1px solid var(--red);
  color: #fca5a5; font-size: 9px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px; margin: 0 2px;
  white-space: nowrap; cursor: help; vertical-align: middle;
}
.ib.imp { background: #431407; border-color: var(--orange); color: #fdba74; }
.ib.std { background: #422006; border-color: var(--yellow); color: #fde68a; }

/* ── Issue Note Callout ───────────────────────────────────── */
.issue-note {
  background: #140000; border: 1px solid #4c1212;
  border-left: 3px solid var(--red); border-radius: 6px;
  padding: 10px 14px; margin: 10px 0;
}
.issue-note p { color: #fca5a5; font-size: 12px; margin: 0; line-height: 1.5; }
.issue-note code { background: #2a0000; padding: 1px 5px; border-radius: 3px; font-family: monospace; font-size: 11px; color: #f87171; }

/* ── Code Block ───────────────────────────────────────────── */
pre.code-block {
  background: #0d1117; border: 1px solid #30363d; border-radius: 8px;
  padding: 14px 16px; font-family: 'Consolas', 'SF Mono', monospace;
  font-size: 12px; color: #e6edf3; overflow-x: auto; margin: 10px 0;
  line-height: 1.7; white-space: pre;
}
.cm { color: #8b949e; }  /* comment */
.tg { color: #7ee787; }  /* tag */
.at { color: #79c0ff; }  /* attribute */
.vl { color: #a5d6ff; }  /* value */
.kw { color: #ff7b72; }  /* keyword / bad */

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--red); color: #fff;
  padding: 9px 18px; border-radius: 6px; text-decoration: none;
  font-size: 13px; font-weight: 600; transition: opacity .15s;
  border: none; cursor: pointer;
}
.btn:hover { opacity: .85; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); padding: 8px 16px; border-radius: 6px;
  text-decoration: none; font-size: 13px; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ── Grid ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.badge.critical  { background: #7f1d1d; color: #fca5a5; }
.badge.important { background: #431407; color: #fdba74; }
.badge.standard  { background: #422006; color: #fde68a; }

/* ── Data Table ───────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: #151515; color: var(--text);
  padding: 10px 13px; text-align: left; border-bottom: 2px solid var(--border);
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
}
.data-table td { padding: 9px 13px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.data-table tr:hover td { background: var(--bg-card); color: var(--text); }

/* ── Search (issues-index) ────────────────────────────────── */
.search-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px; font-size: 13px;
  color: var(--text); width: 100%; margin-bottom: 12px; outline: none;
}
.search-bar:focus { border-color: var(--red); }
.filter-row { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 12px; font-size: 12px; color: var(--text);
  outline: none; cursor: pointer;
}
.filter-select:focus { border-color: var(--red); }
#result-count { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* ── Hero Feature Cards ───────────────────────────────────── */
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.feature-card .icon { font-size: 24px; margin-bottom: 10px; }
.feature-card h3 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ── Misc helpers ─────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 18px; }
.stat-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; }
.stat-box .num { font-size: 28px; font-weight: 800; color: var(--red); }
.stat-box .lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }
.testimonial { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.testimonial blockquote { font-size: 14px; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.testimonial cite { font-size: 12px; color: #9ca3af; font-style: normal; }
.tag-chip { display: inline-block; background: #1a1a1a; border: 1px solid var(--border); color: var(--muted); font-size: 11px; padding: 2px 8px; border-radius: 20px; margin: 2px; }
.separator { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }
img.demo-img { max-width: 100%; border-radius: 6px; border: 1px solid var(--border); background: #1a1a1a; min-height: 120px; display: block; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; }

/* ── Image grid for portfolio ─────────────────────────────── */
.img-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.img-grid img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: #1a1a1a; display: block; }

/* ── Form elements ────────────────────────────────────────── */
input[type=text], input[type=email], textarea, select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 12px; font-size: 13px; color: var(--text);
  width: 100%; outline: none; margin-bottom: 10px;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); }
label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.form-group { margin-bottom: 14px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item h4 { font-size: 14px; color: #fff; margin-bottom: 6px; }
.faq-item p { font-size: 13px; color: var(--muted); }
.product-price { font-size: 32px; font-weight: 800; color: var(--red); }
.product-price sub { font-size: 14px; color: var(--muted); }
.star { color: #f59e0b; }
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 10px; }
.review-card .reviewer { font-size: 12px; color: var(--muted); margin-top: 8px; }
.lang-switcher { display: flex; gap: 8px; margin-bottom: 18px; }
.lang-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--muted); padding: 5px 12px; border-radius: 4px; font-size: 12px; cursor: pointer; text-decoration: none; }
.lang-btn.active { border-color: var(--red); color: var(--red); }
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 20px; }
.page-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--muted); padding: 6px 12px; border-radius: 4px; font-size: 12px; text-decoration: none; }
.page-btn.current { background: var(--red); border-color: var(--red); color: #fff; }
.page-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #0a0a0a; border-top: 1px solid var(--border);
  padding: 24px; text-align: center; color: var(--muted); font-size: 12px;
  margin-top: 40px;
}
footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--text); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  body { padding-right: 0; }
  .issues-sidebar { display: none; }
  nav.main-nav { right: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .stat-grid, .img-grid { grid-template-columns: 1fr; }
}
