/* src/public/css/style.css - Error Codes Lab White & Neon Tech Documentation Theme */

:root {
  /* White & Light Canvas */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-terminal: #0b0f19;
  
  /* Borders */
  --border-subtle: #e2e8f0;
  --border-card: #e2e8f0;
  --border-focus: #00f0ff;
  
  /* Electric Neon Palette */
  --brand-cyan: #00d2ff;
  --brand-neon: #00f0ff;
  --brand-purple: #8b5cf6;
  --brand-magenta: #ff007f;
  --brand-gradient: linear-gradient(135deg, #00d2ff 0%, #8b5cf6 50%, #ff007f 100%);
  --brand-gradient-cyan: linear-gradient(135deg, #00d2ff 0%, #3b82f6 100%);
  
  /* Accents */
  --accent-green: #00e676;
  --accent-green-bg: rgba(0, 230, 118, 0.08);
  --accent-green-border: rgba(0, 230, 118, 0.45);
  
  --accent-red: #ff0055;
  --accent-red-bg: rgba(255, 0, 85, 0.07);
  --accent-red-border: rgba(255, 0, 85, 0.35);
  
  --accent-amber: #ff9100;
  --accent-amber-bg: rgba(255, 145, 0, 0.08);
  --accent-amber-border: rgba(255, 145, 0, 0.45);

  --accent-purple-bg: rgba(139, 92, 246, 0.08);
  --accent-purple-border: rgba(139, 92, 246, 0.35);
  
  /* High-Contrast Crisp Typography */
  --text-primary: #090d16;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Layout & Radii */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  /* Neon Shadows & Glows */
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.35);
  --shadow-neon-card-hover: 0 14px 34px -4px rgba(0, 210, 255, 0.22), 0 4px 12px -2px rgba(139, 92, 246, 0.15);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 240, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255, 0, 127, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
  opacity: 0.85;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.45);
}

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

.logo-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #090d16;
  letter-spacing: -0.5px;
}

.neon-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: #090d16;
  background-color: var(--bg-elevated);
}

.nav-pill-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  margin-left: 0.25rem;
  box-shadow: 0 2px 6px rgba(255, 0, 127, 0.35);
}

/* ==========================================================================
   Hero Section with White & Neon Accents
   ========================================================================== */

.hero-section {
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.4) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.15) 0%, rgba(139, 92, 246, 0.1) 45%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 2px 12px rgba(0, 240, 255, 0.2);
  font-size: 0.825rem;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseNeon 2s infinite;
}

@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: #090d16;
  margin-bottom: 1.1rem;
}

.neon-gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0, 210, 255, 0.25));
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Neon Search Input */
.search-wrapper {
  position: relative;
  max-width: 680px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.15rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 1.15rem 8.5rem 1.15rem 3.4rem;
  background-color: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  color: #090d16;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.search-input:focus {
  border-color: var(--brand-neon);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.25), 0 10px 30px rgba(0, 240, 255, 0.2);
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-clear-btn {
  position: absolute;
  right: 7.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.search-clear-btn:hover {
  background: #090d16;
  color: #fff;
}

.search-submit-btn {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--brand-gradient);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.925rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.search-submit-btn:hover {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.55);
  transform: translateY(-50%) scale(1.03);
}

@media (max-width: 640px) {
  .search-input {
    padding: 1rem 6.8rem 1rem 2.8rem;
    font-size: 0.925rem;
  }
  .search-clear-btn {
    right: 5.6rem;
  }
  .search-submit-btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.825rem;
  }
}

/* Quick Search Chips */
.search-popular-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tags-label {
  font-weight: 700;
  color: var(--text-secondary);
}

.search-tag-chip {
  padding: 0.3rem 0.75rem;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-tag-chip:hover {
  background-color: #ffffff;
  border-color: var(--brand-neon);
  color: #0284c7;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Fast Diagnostic Tool (Interactive Issue Finder)
   ========================================================================== */

.diagnostic-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.diagnostic-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.diagnostic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--brand-gradient);
}

.diagnostic-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.diagnostic-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #090d16;
  margin-bottom: 0.25rem;
}

.diagnostic-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.diagnostic-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.diag-btn {
  padding: 0.6rem 1.15rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.diag-btn:hover {
  border-color: var(--brand-cyan);
  color: #0284c7;
  background-color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.25);
}

.diag-btn.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
   Main Layout & Content Containers
   ========================================================================== */

.site-main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-icon {
  font-size: 1.6rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #090d16;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Category Quick Pills */
.category-pills-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cat-pill {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #090d16;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.cat-pill-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

.cat-pill-name {
  flex-grow: 1;
}

.cat-pill-count {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: #f1f5f9;
  color: #0284c7;
  border: 1px solid rgba(0, 240, 255, 0.4);
}

.cat-pill:hover, .cat-pill.active {
  border-color: var(--brand-neon);
  box-shadow: var(--shadow-neon-card-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Error Code Cards Grid
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.error-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.error-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-neon);
  box-shadow: var(--shadow-neon-card-hover);
}

.error-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.error-code-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.error-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #090d16;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.error-card-title a {
  transition: color 0.15s;
}

.error-card:hover .error-card-title a {
  color: #0284c7;
}

.error-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.error-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.9rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fix-time {
  font-weight: 600;
}

.fix-rate {
  font-weight: 700;
  color: #059669;
}

.fix-btn-link {
  font-weight: 800;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.15s;
}

.error-card:hover .fix-btn-link {
  transform: translateX(3px);
}

/* No Results State */
.no-results-box {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.no-results-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.no-results-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Article Guide Layout
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.5rem;
  align-items: start;
}

.article-content {
  min-width: 0;
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  font-weight: 500;
}

.breadcrumb-nav a {
  color: var(--text-secondary);
}

.breadcrumb-nav a:hover {
  color: #0284c7;
}

.breadcrumb-separator {
  color: #cbd5e1;
}

.breadcrumb-current {
  color: #090d16;
  font-weight: 700;
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
}

.article-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.article-code-pill {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid var(--accent-red-border);
}

.article-subcode-pill {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
}

.verified-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-green-bg);
  color: #059669;
  border: 1px solid var(--accent-green-border);
}

.article-h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #090d16;
  margin-bottom: 1.25rem;
}

/* Editorial Trust Bar */
.editorial-trust-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
}

.trust-avatar {
  font-size: 1.5rem;
}

.trust-info {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.35;
}

.trust-author {
  color: #090d16;
}

.trust-meta {
  color: var(--text-muted);
}

/* Quick Specifications Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.spec-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: #090d16;
}

.spec-success {
  color: #059669;
}

.spec-safe {
  color: #0284c7;
}

/* Featured Quick-Fix Snippet Box (Google Position #0 Target) */
.quick-fix-box {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 240, 255, 0.08) 100%);
  border: 2px solid var(--accent-green);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.25rem;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 230, 118, 0.18);
}

.quick-fix-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #059669;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.quick-icon {
  font-size: 1.25rem;
}

.quick-badge {
  font-size: 0.72rem;
  background: #059669;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.quick-fix-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #090d16;
  line-height: 1.6;
}

/* Pre-Check Checklist */
.precheck-box {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-cyan);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-card);
}

.precheck-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.precheck-icon {
  font-size: 1.5rem;
}

.precheck-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #090d16;
}

.precheck-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.precheck-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.5rem;
}

.precheck-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.precheck-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #0284c7;
  cursor: pointer;
}

.precheck-item.checked .precheck-label-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Root Cause Deep Dive */
.root-cause-box {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-card);
}

.root-cause-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.neon-pill-cyan {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.12);
  color: #0284c7;
  border: 1px solid rgba(0, 240, 255, 0.5);
}

.neon-pill-purple {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-purple-bg);
  color: #7c3aed;
  border: 1px solid var(--accent-purple-border);
}

.neon-pill-green {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--accent-green-bg);
  color: #059669;
  border: 1px solid var(--accent-green-border);
}

.root-cause-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #090d16;
}

.root-cause-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Causes Box */
.causes-box {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-card);
}

.causes-box h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #090d16;
  margin-bottom: 0.85rem;
}

.causes-list {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Warning Box */
.warning-callout-box {
  background-color: #ffffff;
  border: 2px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 0 20px rgba(255, 145, 0, 0.15);
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.warning-badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--accent-amber-bg);
  color: #b45309;
  border: 1px solid var(--accent-amber-border);
}

.warning-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #090d16;
}

.warning-text {
  font-size: 0.925rem;
  color: #78350f;
  line-height: 1.6;
}

/* Jump to Method Quick Bar */
.jump-methods-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.jump-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.jump-pill {
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  background-color: #f8fafc;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-sm);
  color: #0284c7;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.jump-pill:hover {
  background: var(--brand-neon);
  color: #000;
  border-color: var(--brand-neon);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* Step-by-Step Sections */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.steps-heading-wrap {
  margin-bottom: 0.5rem;
}

.steps-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #090d16;
  margin-bottom: 0.3rem;
}

.steps-section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.12);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.35);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #090d16;
}

.step-instructions {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.step-details {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Modern Cyber Terminal Window for Commands */
.terminal-window {
  background-color: var(--bg-terminal);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  margin: 1rem 0;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
  font-size: 0.75rem;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-weight: 600;
}

.terminal-body {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #00ff9d;
  overflow-x: auto;
}

.terminal-body code {
  color: #00ff9d;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.4);
}

.copy-btn {
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
  font-family: inherit;
}

.copy-btn:hover {
  background-color: var(--brand-neon);
  color: #000;
  border-color: var(--brand-neon);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

/* Prevention Tips Box */
.prevent-tips-box {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

.prevent-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.prevent-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #090d16;
}

.prevent-list {
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* User Feedback Widget (Did this fix your issue?) */
.feedback-widget {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.1);
}

.feedback-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #090d16;
  margin-bottom: 0.4rem;
}

.feedback-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.feedback-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.feedback-btn {
  padding: 0.75rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.feedback-btn-yes {
  background: var(--accent-green);
  color: #000;
  border: 1px solid var(--accent-green);
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.35);
}

.feedback-btn-yes:hover {
  background: #00c853;
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
}

.feedback-btn-no {
  background-color: #ffffff;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
}

.feedback-btn-no:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.25);
  transform: translateY(-2px);
}

.feedback-response-msg {
  display: none;
  font-size: 1.05rem;
  font-weight: 800;
  color: #059669;
  padding: 0.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ Accordion */
.faq-section {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
}

.faq-header-wrap {
  margin-bottom: 1.5rem;
}

.faq-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #090d16;
  margin-top: 0.3rem;
}

.faq-item {
  border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 1.15rem 0;
  background: none;
  border: none;
  color: #090d16;
  font-size: 1.025rem;
  font-weight: 800;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: color 0.15s;
}

.faq-question-btn:hover {
  color: #0284c7;
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #0284c7;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: 1.15rem;
}

/* Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 5rem;
}

.sidebar-widget {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 800;
  color: #090d16;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sidebar-specs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 0.4rem;
}

.sidebar-specs-list code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background-color: #f1f5f9;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.sidebar-related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-related-list li a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s;
}

.sidebar-related-list li a:hover {
  border-color: var(--brand-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  transform: translateX(2px);
}

.rel-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-red);
}

.rel-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #090d16;
  line-height: 1.3;
}

/* Ad Slots */
.ad-slot-wrapper {
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin: 1.75rem 0;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 700;
}

.ad-box {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Tactile Keyboard Key Badges (<kbd>) */
kbd {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 800;
  color: #090d16;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-bottom: 3px solid var(--brand-cyan);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 210, 255, 0.25);
  line-height: 1.2;
  margin: 0 0.25rem;
  vertical-align: middle;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: auto;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  line-height: 1.6;
  max-width: 350px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #090d16;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #0284c7;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #0284c7;
  font-weight: 700;
}

/* Mobile Menu */
.menu-toggle-btn {
  display: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #090d16;
  font-size: 1.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-toggle-btn:hover {
  border-color: var(--brand-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.mobile-menu-drawer {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.25rem;
  background-color: #ffffff;
  border-bottom: 1px solid #cbd5e1;
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-menu-drawer .nav-link {
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
}

/* Responsive updates */
@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
  
  .menu-toggle-btn {
    display: block;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }

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