/* ============================================
   TechRateHub - Modern Tech Review Site
   Pure HTML5 + CSS3 | Light Theme | 2026 Style
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-bg: #fafbfc;
  --color-bg-soft: #f0f4f8;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-text: #1a2332;
  --color-text-muted: #5c6b7a;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-accent-soft: #eff6ff;
  --color-secondary: #7c3aed;
  --color-warm: #f59e0b;
  --color-warm-soft: #fffbeb;
  --gradient-hero: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 50%, #fef3c7 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-cta: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --gradient-banner: linear-gradient(90deg, #dbeafe 0%, #e9d5ff 50%, #fef3c7 100%);
  --shadow-soft: 0 4px 20px rgba(37, 99, 235, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 20px 50px rgba(37, 99, 235, 0.12);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.06);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: 'Outfit', 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
  animation: sectionFade 0.6s ease-out forwards;
}

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

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-nav);
  transition: background var(--transition), box-shadow var(--transition);
}

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

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.navbar-menu a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.navbar-menu a:hover {
  color: var(--color-accent);
  background: var(--color-accent-soft);
}

/* --- Affiliate Banner --- */
.affiliate-banner {
  background: var(--gradient-banner);
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.affiliate-banner a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease-out forwards;
}

.hero-content .hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
  animation: slideUp 0.8s ease-out 0.1s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-cta);
  color: white !important;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.hero-image-wrap {
  position: relative;
  animation: slideUp 0.9s ease-out 0.3s both;
}

.hero-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  transition: transform var(--transition);
}

.hero-image-wrap:hover img {
  transform: scale(1.02);
}

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

/* --- Cards --- */
.card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.rating-stars {
  color: var(--color-warm);
  font-size: 1rem;
  letter-spacing: 2px;
}

.rating-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.card-btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.card-btn:hover {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

/* Button glow on focus/hover */
.btn-primary:hover,
.hero-cta:hover {
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.4);
}

/* Card variants */
.card-horizontal {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.card-horizontal .card-image {
  aspect-ratio: 1;
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card-featured {
  grid-column: span 1;
}

.card-featured .card-image {
  aspect-ratio: 16/9;
}

.card-overlay .card-image {
  position: relative;
}

.card-overlay .card-body {
  position: relative;
  margin-top: -60px;
  margin-left: 1rem;
  margin-right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-soft);
}

/* --- Featured Reviews Grid --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.featured-grid .card {
  animation: cardFadeIn 0.6s ease-out forwards;
}

.featured-grid .card:nth-child(1) { animation-delay: 0.1s; }
.featured-grid .card:nth-child(2) { animation-delay: 0.2s; }
.featured-grid .card:nth-child(3) { animation-delay: 0.3s; }
.featured-grid .card:nth-child(4) { animation-delay: 0.4s; }

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

/* --- Top Products --- */
.top-products {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
}

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

.products-grid .card {
  animation: cardFadeIn 0.6s ease-out forwards;
}

.products-grid .card:nth-child(1) { animation-delay: 0.1s; }
.products-grid .card:nth-child(2) { animation-delay: 0.2s; }
.products-grid .card:nth-child(3) { animation-delay: 0.3s; }
.products-grid .card:nth-child(4) { animation-delay: 0.4s; }

/* --- Latest Reviews (mixed layout) --- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.latest-grid .card:first-child {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.latest-grid .card:first-child .card-image {
  flex: 1;
  min-height: 200px;
}

.latest-grid .card {
  animation: cardFadeIn 0.6s ease-out forwards;
}

.latest-grid .card:nth-child(1) { animation-delay: 0.15s; }
.latest-grid .card:nth-child(2) { animation-delay: 0.25s; }
.latest-grid .card:nth-child(3) { animation-delay: 0.35s; }

/* --- Comparison Table --- */
.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comparison-table th {
  background: var(--gradient-hero);
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.9rem;
}

.comparison-table tr:hover td {
  background: var(--color-accent-soft);
}

.comparison-table .product-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comparison-table .product-cell img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* --- Newsletter --- */
.newsletter {
  background: var(--gradient-hero);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
}

.newsletter h2 {
  margin-bottom: 0.5rem;
}

.newsletter p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: linear-gradient(180deg, var(--color-text) 0%, #0f172a 100%);
  color: #e2e8f0;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-disclaimer {
  max-width: 720px;
  margin: 0 auto 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-disclaimer a {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer a:hover {
  color: #fff;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
  padding: 1rem 1.5rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: #fff;
}

.cookie-banner-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--gradient-hero);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

/* --- Review Page --- */
.review-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.review-hero-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

.review-hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

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

.review-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent-soft);
  color: var(--color-text);
}

.review-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-cons-box {
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.pros-cons-box.pros {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.pros-cons-box.cons {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.pros-cons-box h3 {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.specs-table th,
.specs-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.specs-table th {
  background: var(--color-bg-soft);
  font-weight: 600;
  width: 35%;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* --- Full Review Article (dedicated review pages) --- */
.review-article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.review-article {
  font-size: 1.1rem;
  line-height: 1.75;
}

.review-article p {
  margin-bottom: 1.35rem;
  color: var(--color-text);
}

.review-article p strong,
.review-article .highlight {
  color: var(--color-accent);
  font-weight: 600;
}

.review-article h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.review-article .review-meta {
  margin-bottom: 1.5rem;
}

.review-article h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent-soft);
  color: var(--color-text);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.review-article h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.review-intro-image,
.review-inline-image {
  width: 100%;
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.review-intro-image img,
.review-inline-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.review-verdict-cta {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.review-article .pros-cons {
  margin: 2.5rem 0;
}

.review-article .pros-cons-box ul {
  padding-left: 1.25rem;
  margin: 0;
}

.review-article .pros-cons-box li {
  margin-bottom: 0.5rem;
  list-style: none;
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
}

.review-article .pros-cons-box.pros li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 700;
}

.review-article .pros-cons-box.cons li::before {
  content: '✖';
  position: absolute;
  left: 0;
  color: #dc2626;
  font-weight: 700;
}

/* --- Author Box (E-E-A-T) --- */
.review-editorial-notice {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--color-accent);
}

.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin: 2rem 0;
  flex-wrap: wrap;
}

.author-box-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.author-box-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box-content h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.author-box-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.author-box-content p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.author-box-content a {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 0.9rem;
}

.author-box-content a:hover {
  text-decoration: underline;
}

/* --- Rating Breakdown (E-E-A-T) --- */
.rating-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.rating-breakdown-item {
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.rating-breakdown-item .label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.rating-breakdown-item .score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.rating-breakdown-overall {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
}

.rating-breakdown-overall .overall-score {
  color: var(--color-accent);
  font-size: 1.35rem;
}

/* --- Author Profile Page --- */
.author-profile-main {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.author-profile-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-card);
}

.author-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-content {
  flex: 1;
  min-width: 280px;
}

.author-profile-content h2 {
  margin-top: 0;
}

.author-title {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem !important;
}

.author-review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.author-review-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: var(--color-text-muted);
}

.author-review-list li:last-child {
  border-bottom: none;
}

.author-review-list a {
  font-weight: 600;
  color: var(--color-accent);
}

.author-review-list a:hover {
  text-decoration: underline;
}

/* --- Comparison Page --- */
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* --- About Page --- */
.about-section {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.about-section h2 {
  margin-bottom: 1rem;
}

.about-section p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-hero);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.team-card h4 {
  margin-bottom: 0.25rem;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.contact-form-wrap {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--color-bg-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.contact-info .social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.contact-info .social-links a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.contact-info .social-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* --- Legal pages --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 1rem 0 1rem 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  list-style: disc;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image-wrap {
    max-width: 480px;
    margin: 0 auto;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-grid .card:first-child {
    grid-row: span 1;
  }

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

  .review-hero {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-menu {
    justify-content: center;
  }

  .card-horizontal {
    grid-template-columns: 1fr;
  }

  .card-horizontal .card-image {
    aspect-ratio: 16/10;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input[type="email"] {
    min-width: 100%;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .comparison-table .product-cell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 0;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .review-article-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .review-article {
    font-size: 1rem;
  }

  .review-intro-image,
  .review-inline-image {
    margin: 1.5rem 0;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .cookie-banner-text {
    min-width: 100%;
  }
}
