/* Best Indoor Cam — Product Review Site */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --star: #f59e0b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-h: 72px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--text); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-main a {
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active,
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a {
  color: var(--accent);
  background: var(--accent-soft);
}

.custom-logo-link { display: flex; align-items: center; }
.rank-math-breadcrumb p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.rank-math-breadcrumb a { color: var(--text-muted); }
.entry-content { max-width: 100%; width: 100%; }
.bic-content-full { display: block; }
.entry-content h2 { font-family: var(--font-display); margin: 2rem 0 1rem; }
.wpcf7 input, .wpcf7 textarea, .wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
}
.wpcf7 input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* ─── AdSense placeholders ─── */
.ad-slot {
  background: var(--bg-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  min-height: 90px;
}

.ad-leaderboard {
  min-height: 90px;
  max-height: 90px;
  margin: 1rem 0;
}

.ad-rectangle {
  min-height: 250px;
}

.ad-sidebar {
  min-height: 600px;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.ad-in-article {
  min-height: 280px;
  margin: 2rem 0;
}

.ad-footer {
  min-height: 90px;
  margin: 2rem 0 0;
}

/* ─── Hero ─── */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-card-img {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #e2e8f0 0%, #f8fafc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.hero-card-body { padding: 1.25rem; }

.hero-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-card h3 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.5rem;
}

/* ─── Trust bar ─── */
.trust-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--accent);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Section ─── */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ─── Product cards ─── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-img {
  aspect-ratio: 16/10;
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.product-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.product-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.product-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.product-card h3 a:hover { color: var(--accent); }

.product-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-tag {
  font-weight: 700;
  font-size: 1rem;
}

/* ─── Stars ─── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
  font-size: 0.9rem;
}

.stars-muted { color: #e2e8f0; }
.rating-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.35rem;
}

/* ─── Categories ─── */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.pill:hover,
.pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* ─── Comparison preview ─── */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: white;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table .highlight {
  background: var(--accent-soft);
  font-weight: 600;
}

.check { color: var(--accent); }
.cross { color: #ef4444; }

/* ─── Two column layout ─── */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ─── Article / Review detail ─── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-light); }

.article-header { margin-bottom: 2rem; }

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta strong { color: var(--text); }

.verdict-box {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f8fafc 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}

.verdict-box h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--accent-hover);
}

.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.verdict-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-cons h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.pros-cons ul {
  list-style: none;
  font-size: 0.9rem;
}

.pros-cons li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pros-cons li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pros li::before { content: "✓"; color: var(--accent); }
.cons li::before { content: "✗"; color: #ef4444; }

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2rem 0 1rem;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.9rem;
}

.spec-item span:first-child { color: var(--text-muted); }
.spec-item span:last-child { font-weight: 600; }

.cta-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box p { margin-bottom: 1rem; color: var(--text-muted); }

/* ─── Sidebar widgets ─── */
.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.sidebar-list a:hover { color: var(--accent); }

/* ─── Buying guide cards ─── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.guide-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.guide-card:hover { box-shadow: var(--shadow); }

.guide-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Forms ─── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ─── Page hero (inner) ─── */
.page-hero {
  padding: 2.5rem 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 36rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  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.75rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.affiliate-note {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg-muted);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

/* ─── Newsletter ─── */
.newsletter-box {
  background: linear-gradient(135deg, #1d4ed8 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  text-align: center;
  margin: 2rem 0;
}

.newsletter-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  opacity: 0.9;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  font-family: inherit;
}

.newsletter-form .btn-primary {
  background: white;
  color: var(--accent-hover);
}

.newsletter-form .btn-primary:hover {
  background: var(--bg-soft);
}

/* ─── FAQ ─── */
.faq-list { max-width: 720px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid--two { grid-template-columns: repeat(2, 1fr); }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .ad-sidebar { position: static; min-height: 250px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-main.open { display: flex; }

  .nav-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
}
