/*
Theme Name: TopGearGuide
Theme URI: https://topgearguide.com
Author: TopGearGuide
Author URI: https://topgearguide.com
Description: A professional Amazon affiliate and product review WordPress theme for TopGearGuide.com, built for buying guides, comparisons, deal-style calls to action, disclosures, and SEO-friendly review content.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topgearguide
Tags: blog, e-commerce, custom-logo, featured-images, threaded-comments, translation-ready
*/

:root {
  --tgg-ink: #121722;
  --tgg-muted: #647084;
  --tgg-line: #e1e6ee;
  --tgg-soft: #f5f8fc;
  --tgg-white: #ffffff;
  --tgg-blue: #2364d2;
  --tgg-blue-dark: #143f91;
  --tgg-amber: #f6a623;
  --tgg-green: #198754;
  --tgg-red: #d64b3c;
  --tgg-shadow: 0 18px 54px rgba(18, 23, 34, 0.12);
  --tgg-radius: 8px;
  --tgg-wide: 1180px;
  --tgg-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tgg-serif: "Source Serif 4", Georgia, serif;
}

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

body {
  margin: 0;
  background: var(--tgg-white);
  color: var(--tgg-ink);
  font-family: var(--tgg-font);
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: var(--tgg-blue);
  text-underline-offset: 0.16em;
}

a:hover,
a:focus {
  color: var(--tgg-blue-dark);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--tgg-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
}

.site-branding {
  align-items: center;
  color: var(--tgg-ink);
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.site-branding__mark {
  align-items: center;
  background: linear-gradient(135deg, var(--tgg-ink), var(--tgg-blue));
  border-radius: 50%;
  color: var(--tgg-white);
  display: inline-flex;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.site-title {
  display: block;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.08;
}

.site-tagline {
  color: var(--tgg-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 3px;
  text-transform: uppercase;
}

.main-navigation {
  align-items: center;
  display: flex;
}

.main-navigation ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  border-radius: 999px;
  color: var(--tgg-ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 9px 12px;
  text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background: var(--tgg-soft);
  color: var(--tgg-blue);
}

.menu-toggle {
  background: var(--tgg-ink);
  border: 0;
  border-radius: 999px;
  color: var(--tgg-white);
  cursor: pointer;
  display: none;
  font-weight: 900;
  padding: 10px 14px;
}

.tgg-button,
button,
input[type="submit"] {
  align-items: center;
  background: var(--tgg-blue);
  border: 0;
  border-radius: 999px;
  color: var(--tgg-white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  padding: 13px 18px;
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tgg-button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--tgg-blue-dark);
  color: var(--tgg-white);
  transform: translateY(-1px);
}

.tgg-button--amazon {
  background: var(--tgg-amber);
  color: #241600;
}

.tgg-button--amazon:hover {
  background: #e29718;
  color: #241600;
}

.tgg-button--light {
  background: var(--tgg-white);
  color: var(--tgg-blue);
}

.tgg-button--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--tgg-white);
}

.tgg-hero {
  background-color: var(--tgg-ink);
  background-image: linear-gradient(90deg, rgba(18, 23, 34, 0.92), rgba(18, 23, 34, 0.55), rgba(18, 23, 34, 0.05)), url("assets/images/topgearguide-hero.png");
  background-position: center;
  background-size: cover;
  color: var(--tgg-white);
  min-height: clamp(520px, 72vh, 760px);
  padding: 84px 0 64px;
}

.tgg-hero__content {
  max-width: 700px;
}

.tgg-kicker {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.tgg-hero h1,
.page-title,
.entry-title {
  font-family: var(--tgg-serif);
  letter-spacing: 0;
  line-height: 1.04;
}

.tgg-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  margin: 22px 0 18px;
}

.tgg-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  max-width: 650px;
}

.tgg-hero__actions,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tgg-proof {
  background: var(--tgg-white);
  border-bottom: 1px solid var(--tgg-line);
}

.tgg-proof__grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.tgg-proof__item {
  padding: 24px;
}

.tgg-proof__item strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 900;
}

.tgg-proof__item span {
  color: var(--tgg-muted);
  display: block;
  font-size: 0.92rem;
  margin-top: 4px;
}

.tgg-section {
  padding: 72px 0;
}

.tgg-section--soft {
  background: var(--tgg-soft);
}

.tgg-section__head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.tgg-section__head h2,
.widget-title,
.comments-title,
.comment-reply-title {
  font-family: var(--tgg-serif);
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.tgg-section__head p,
.archive-description,
.page-header p {
  color: var(--tgg-muted);
  margin: 10px 0 0;
  max-width: 720px;
}

.tgg-category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.tgg-category-tile {
  background: var(--tgg-white);
  border: 1px solid var(--tgg-line);
  border-radius: var(--tgg-radius);
  color: var(--tgg-ink);
  min-height: 142px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  text-decoration: none;
}

.tgg-category-tile::after {
  background: radial-gradient(circle, rgba(35, 100, 210, 0.18), transparent 65%);
  content: "";
  height: 104px;
  position: absolute;
  right: -36px;
  top: -36px;
  width: 104px;
}

.tgg-category-tile strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
}

.tgg-category-tile span {
  color: var(--tgg-muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
}

.tgg-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.tgg-card {
  background: var(--tgg-white);
  border: 1px solid var(--tgg-line);
  border-radius: var(--tgg-radius);
  box-shadow: 0 8px 28px rgba(18, 23, 34, 0.06);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.tgg-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e9f0ff, #fff4dc);
  overflow: hidden;
}

.tgg-card__media img,
.post-thumbnail img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.tgg-card__fallback {
  align-items: end;
  background-image: linear-gradient(135deg, rgba(18, 23, 34, 0.88), rgba(35, 100, 210, 0.6)), url("assets/images/topgearguide-hero.png");
  background-position: center;
  background-size: cover;
  display: flex;
  height: 100%;
  padding: 18px;
}

.tgg-badge {
  background: var(--tgg-amber);
  border-radius: 999px;
  color: #241600;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.tgg-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.tgg-card__meta,
.entry-meta {
  color: var(--tgg-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 10px;
  margin-bottom: 10px;
}

.tgg-card h3 {
  font-family: var(--tgg-serif);
  font-size: 1.45rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0 0 10px;
}

.tgg-card h3 a {
  color: var(--tgg-ink);
  text-decoration: none;
}

.tgg-card p {
  color: var(--tgg-muted);
  margin: 0;
}

.tgg-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.page-header,
.entry-header {
  background: linear-gradient(135deg, var(--tgg-soft), #fff7e8);
  border-bottom: 1px solid var(--tgg-line);
  padding: 64px 0;
}

.page-title,
.entry-title {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  margin: 10px 0 0;
  max-width: 980px;
}

.content-area {
  padding: 56px 0;
}

.content-layout {
  align-items: start;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.entry-content {
  font-size: 1.07rem;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--tgg-serif);
  letter-spacing: 0;
  line-height: 1.16;
}

.entry-content h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  margin-top: 2em;
}

.entry-content h3 {
  font-size: 1.55rem;
  margin-top: 1.6em;
}

.entry-content p,
.entry-content li {
  color: #273142;
}

.entry-content table {
  border-collapse: collapse;
  margin: 28px 0;
  width: 100%;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--tgg-line);
  padding: 12px;
  text-align: left;
}

.entry-content th {
  background: var(--tgg-soft);
}

.post-thumbnail {
  border-radius: var(--tgg-radius);
  box-shadow: var(--tgg-shadow);
  margin: 0 0 32px;
  max-height: 520px;
  overflow: hidden;
}

.deal-panel,
.disclosure-note,
.sidebar-card,
.comments-area,
.comment-respond {
  background: var(--tgg-white);
  border: 1px solid var(--tgg-line);
  border-radius: var(--tgg-radius);
  box-shadow: 0 8px 28px rgba(18, 23, 34, 0.05);
  padding: 24px;
}

.deal-panel {
  background: linear-gradient(135deg, #eef4ff, #fff4dc);
  margin-bottom: 28px;
}

.deal-panel h2 {
  font-family: var(--tgg-serif);
  font-size: 1.65rem;
  margin: 0 0 8px;
}

.deal-panel p,
.disclosure-note {
  color: var(--tgg-muted);
}

.disclosure-note {
  background: #fff8e9;
  border-color: #f0d39a;
  color: #5e4310;
  font-size: 0.92rem;
  margin: 28px 0;
}

.share-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.share-row span {
  color: var(--tgg-muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.share-button {
  border: 1px solid var(--tgg-line);
  border-radius: 999px;
  color: var(--tgg-ink);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 9px 12px;
  text-decoration: none;
}

.share-button:hover {
  background: var(--tgg-soft);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-card h2,
.sidebar-card h3 {
  font-family: var(--tgg-serif);
  font-size: 1.35rem;
  line-height: 1.16;
  margin: 0 0 12px;
}

.sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-card li + li {
  border-top: 1px solid var(--tgg-line);
  margin-top: 12px;
  padding-top: 12px;
}

.sidebar-card a {
  font-weight: 850;
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
  border: 1px solid var(--tgg-line);
  border-radius: var(--tgg-radius);
  color: var(--tgg-ink);
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}

textarea {
  min-height: 140px;
}

.comment-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.comment-body {
  border-top: 1px solid var(--tgg-line);
  padding: 20px 0;
}

.site-footer {
  background: var(--tgg-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}

.site-footer a {
  color: var(--tgg-white);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}

.footer-brand strong {
  color: var(--tgg-white);
  display: block;
  font-size: 1.35rem;
}

.footer-brand p,
.footer-note {
  color: rgba(255, 255, 255, 0.66);
}

.footer-col h2 {
  color: var(--tgg-white);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 9px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 34px;
  padding-top: 20px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.page-numbers {
  border: 1px solid var(--tgg-line);
  border-radius: 999px;
  color: var(--tgg-ink);
  min-width: 38px;
  padding: 7px 12px;
  text-align: center;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--tgg-blue);
  color: var(--tgg-white);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation ul {
    background: var(--tgg-white);
    border: 1px solid var(--tgg-line);
    border-radius: var(--tgg-radius);
    box-shadow: var(--tgg-shadow);
    display: none;
    padding: 12px;
    position: absolute;
    right: 24px;
    top: 70px;
    width: min(330px, calc(100vw - 48px));
  }

  .main-navigation.toggled ul {
    display: grid;
  }

  .main-navigation li,
  .main-navigation a {
    width: 100%;
  }

  .tgg-grid,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tgg-category-grid,
  .tgg-proof__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tgg-shell {
    padding: 0 18px;
  }

  .site-tagline {
    display: none;
  }

  .tgg-hero {
    min-height: 600px;
    padding: 58px 0 42px;
  }

  .tgg-hero__actions,
  .entry-actions,
  .search-form {
    flex-direction: column;
  }

  .tgg-button,
  button,
  input[type="submit"] {
    width: 100%;
  }

  .tgg-section {
    padding: 52px 0;
  }

  .tgg-section__head {
    align-items: start;
    flex-direction: column;
  }

  .tgg-category-grid,
  .tgg-proof__grid {
    grid-template-columns: 1fr;
  }
}
