/* ============================================
   Shape Is King — gaming mouse review blog
   Core stylesheet
   ============================================ */

:root {
  --bg: #0b0c10;
  --bg-alt: #14151d;
  --card: #191b24;
  --card-hover: #20222d;
  --border: #2a2c38;
  --text: #e9e8e6;
  --text-muted: #a3a2ad;
  --gold: #f2c14e;
  --gold-dark: #c99a2e;
  --accent: #4cc9f0;
  --accent-dim: #2f7d94;
  --danger: #e85d5d;
  --success: #6fcf7a;
  --radius: 10px;
  --max-width: 1160px;
  --font-heading: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 0.5em;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.logo:hover { text-decoration: none; }
.logo .crown { color: var(--gold); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.main-nav a:hover { color: var(--gold); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 1.4rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(242, 193, 78, 0.12), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.hero h1 .crown { color: var(--gold); }

.hero p.lede {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: #171308;
}
.btn-primary:hover { background: var(--gold-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- Section headings ---------- */

.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.9rem;
}
.section-head .see-all {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: var(--accent-dim);
}

.card-media {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #1c1e29, #12131a);
  border-bottom: 1px solid var(--border);
  color: var(--gold);
}

.card-media img {
  width: 60px;
  height: auto;
}

.card-media img.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}
.card-body h3 a { color: #fff; }
.card-body h3 a:hover { color: var(--gold); text-decoration: none; }

.card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(242, 193, 78, 0.12);
  color: var(--gold);
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 0.85rem;
  width: fit-content;
}

/* ---------- Philosophy / About strip ---------- */

.philosophy {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philosophy .grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.philosophy .item h3 {
  color: var(--gold);
  font-size: 1.1rem;
}
.philosophy .item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Review page ---------- */

.review-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

.review-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.review-title h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.review-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.score-ring {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 6px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--card);
}
.score-ring .score {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
}
.score-ring .out-of {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spec-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 220px;
  background: var(--bg-alt);
}
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: none; }

/* ---------- Buy box / affiliate CTA ---------- */

.buy-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.buy-box .disclosure {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ---------- Rankings table ---------- */

.rankings-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.rankings-table th, .rankings-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.rankings-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-alt);
}
.rankings-table tr:last-child td { border-bottom: none; }
.rankings-table tr:hover td { background: var(--card-hover); }
.rankings-table td.rank {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  width: 48px;
}
.rankings-table td.rank-score {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.rankings-table a { color: #fff; font-weight: 600; }
.rankings-table a:hover { color: var(--gold); text-decoration: none; }
.rankings-table .rank-meta { color: var(--text-muted); font-size: 0.85rem; }

.review-body {
  padding: 48px 0;
  max-width: 780px;
}
.review-body h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
}
.review-body h2:first-child { margin-top: 0; }
.review-body p { color: #d3d2d8; }

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 28px 0;
}
.pros-cons .box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.pros-cons h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.pros h3 { color: var(--success); }
.cons h3 { color: var(--danger); }
.pros-cons ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.pros-cons li { margin-bottom: 6px; }

.verdict-box {
  background: linear-gradient(135deg, rgba(242,193,78,0.1), transparent);
  border: 1px solid rgba(242,193,78,0.3);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 32px;
}
.verdict-box h3 {
  color: var(--gold);
  font-size: 1.1rem;
}

.disclosure {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 40px;
}

/* ---------- Blog post ---------- */

.post-body {
  padding: 48px 0;
  max-width: 720px;
}
.post-body h2 { font-size: 1.4rem; margin-top: 1.8em; }
.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-about p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- 404 ---------- */

.not-found {
  padding: 100px 0;
  text-align: center;
}
.not-found h1 {
  font-size: 5rem;
  color: var(--gold);
}

/* ---------- Gear list ---------- */

.gear-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.gear-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.gear-item h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.gear-item h3 a {
  color: var(--gold);
  text-decoration: none;
}
.gear-item h3 a:hover {
  text-decoration: underline;
}
.gear-role {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gear-note {
  margin: 8px 0 0;
  color: #d3d2d8;
  font-size: 0.92rem;
}

/* ---------- Responsive ---------- */

/* ---------- Review photo ---------- */

.review-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1c1e29, #12131a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  max-height: 340px;
}
.review-photo {
  max-width: 100%;
  max-height: 290px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- FAQ section ---------- */

.faq-section {
  margin-top: 36px;
}
.faq-section h2 {
  margin-top: 0;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 8px;
}
.faq-item p {
  margin: 0;
  color: #d3d2d8;
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }
  .main-nav li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-block; }
  .footer-grid { grid-template-columns: 1fr; }
  .review-hero-top { flex-direction: column; align-items: flex-start; }
}
