/* ==========================================================================
   DruckersReview - Modern Tech Review & Comparison Design System (2026)
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --amazon-orange: #ff9900;
  --amazon-dark: #131921;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --slate-border: #334155;
  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Top Disclosure Bar --- */
.top-disclosure-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 1rem;
}
.top-disclosure-bar a {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Navbar --- */
.site-navbar {
  background-color: var(--dark) !important;
  border-bottom: 1px solid var(--slate-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.nav-logo-svg {
  vertical-align: middle;
  height: 38px;
}
.navbar-dark .navbar-nav .nav-link {
  color: #e2e8f0;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #38bdf8;
}
.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}
.lang-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #38bdf8;
}

/* --- Hero Section --- */
.hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
  color: #ffffff;
  padding: 4.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}
.hero-gradient::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* --- Grid & Cards --- */
.printer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.printer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}
.printer-img-box {
  background: #ffffff;
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.printer-img-box img {
  max-height: 175px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.printer-card:hover .printer-img-box img {
  transform: scale(1.05);
}
.printer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.rating-stars {
  color: var(--star-color);
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.rating-score {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.9rem;
}
.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.spec-pill {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Buttons --- */
.btn-buy-amazon {
  background-color: var(--amazon-orange);
  color: #111111;
  font-weight: 700;
  border: 1px solid #e28000;
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-buy-amazon:hover {
  background-color: #f08804;
  color: #000;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
  transform: translateY(-1px);
}
.btn-buy-official {
  background-color: var(--dark-surface);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-buy-official:hover {
  background-color: var(--dark);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

/* --- Review Single Page Elements --- */
.review-header-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}
.score-badge-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}
.score-badge-circle .num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}
.score-badge-circle .max {
  font-size: 0.75rem;
  opacity: 0.85;
}
.action-box-card {
  background: #ffffff;
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #334155;
}
.article-body h2, .article-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f1f5f9;
}
.article-body p {
  margin-bottom: 1.35rem;
}
.toc-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.toc-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.toc-box li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e2e8f0;
}
.toc-box li:last-child {
  border-bottom: none;
}
.toc-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.toc-box a:hover {
  text-decoration: underline;
}

/* --- Gallery --- */
.gallery-main-img-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.gallery-main-img-box img {
  max-height: 250px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.gallery-main-img-box:hover img {
  transform: scale(1.04);
}

/* --- Cost per page highlight card --- */
.cpp-card {
  background: #eff6ff;
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* --- Pros and Cons --- */
.pros-cons-card {
  border-radius: var(--radius-md);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.pros-card {
  background: var(--success-bg);
  border: 1px solid #a7f3d0;
}
.cons-card {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
}
.pros-cons-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.pros-cons-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.98rem;
}
.pros-card .pros-cons-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
  font-size: 1.1rem;
}
.cons-card .pros-cons-list li::before {
  content: "✖";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--danger);
  font-weight: 800;
  font-size: 1.1rem;
}

/* --- Setup guide --- */
.setup-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Spec Table --- */
.spec-table {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}
.spec-table th {
  background-color: #f8fafc;
  width: 32%;
  color: var(--text-heading);
  font-weight: 600;
  border-color: var(--border-light);
  padding: 0.85rem 1.25rem;
}
.spec-table td {
  padding: 0.85rem 1.25rem;
  border-color: var(--border-light);
  color: var(--text-main);
}

/* --- Comparison Table --- */
.comparison-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.comparison-table {
  margin-bottom: 0;
  vertical-align: middle;
}
.comparison-table th {
  background-color: var(--dark-surface);
  color: #ffffff;
  font-weight: 600;
  padding: 1rem;
  white-space: nowrap;
}
.comparison-table td {
  padding: 1rem;
  border-color: var(--border-light);
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1.25rem 1.5rem;
  z-index: 99999;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.3);
  display: none;
}
.cookie-banner.show {
  display: block;
}

/* --- Footer --- */
.site-footer {
  background-color: #0b1120;
  border-top: 1px solid var(--slate-border);
  color: #94a3b8;
  padding-top: 4rem;
  padding-bottom: 2rem;
  margin-top: 5rem;
}
.site-footer h5 {
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: #38bdf8;
}
.footer-disclosure {
  background: #070b14;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  line-height: 1.7;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero-gradient {
    padding: 3rem 1rem;
  }
  .review-header-card {
    padding: 1.5rem;
  }
  .score-badge-circle {
    width: 75px;
    height: 75px;
  }
  .score-badge-circle .num {
    font-size: 1.5rem;
  }
}
