/* ==========================================================================
   CarTrier Global Stylesheet
   Tailwind-to-vanilla CSS translation for WordPress theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Primary palette */
  --primary: #1E293B;
  --primary-dark: #0F172A;
  --primary-light: #334155;

  /* Accent palette */
  --accent: #E11D48;
  --accent-dark: #BE123C;
  --accent-light: #FDA4AF;

  /* Semantic colors */
  --success: #059669;
  --danger: #DC2626;
  --warning: #D97706;
  --info: #0284C7;

  /* Backgrounds */
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;

  /* Typography colors */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;

  /* Borders */
  --border: #E2E8F0;
  --border-dark: #CBD5E1;

  /* EU energy label colors */
  --eu-a: #00A651;
  --eu-b: #4AB449;
  --eu-c: #F0E800;
  --eu-d: #FDB913;
  --eu-e: #F05A28;
  --eu-f: #E30613;
  --eu-g: #C1272D;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Font Imports
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* --------------------------------------------------------------------------
   4. Base Typography & Site Wrapper
   -------------------------------------------------------------------------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: #f1f5f9;
}

/* Site wrapper for centered boxed layout */
.site-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--bg-white);
  box-shadow: 0 0 60px rgba(0,0,0,0.08);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.125rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

strong, b { font-weight: 600; }

/* --------------------------------------------------------------------------
   5. Container - Centered & Compact Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Wider container for full-width sections */
.container-wide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-xl);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-light);
}

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

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

.btn-success {
  background-color: var(--success);
  color: #fff;
  border-color: var(--success);
  box-shadow: var(--shadow-md);
}

.btn-success:hover {
  background-color: #047857;
  border-color: #047857;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

.btn:disabled,
.btn[disabled] {
  background-color: #94A3B8;
  border-color: #94A3B8;
  color: #FFFFFF;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
  transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  background-color: #94A3B8;
  border-color: #94A3B8;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

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

.card-flat {
  background-color: var(--bg-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. Tags
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bg-light), var(--border));
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.tag:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
}

.tag-season {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
}

.tag-category {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
  color: #5B21B6;
}

.tag-sizes {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
}

/* --------------------------------------------------------------------------
   9. EU Badges
   -------------------------------------------------------------------------- */
.eu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.eu-badge-a, .eu-rating-a { background-color: var(--eu-a); }
.eu-badge-b, .eu-rating-b { background-color: var(--eu-b); }
.eu-badge-c, .eu-rating-c { background-color: var(--eu-c); color: #1a1a1a; }
.eu-badge-d, .eu-rating-d { background-color: var(--eu-d); color: #1a1a1a; }
.eu-badge-e, .eu-rating-e { background-color: var(--eu-e); }
.eu-badge-f, .eu-rating-f { background-color: var(--eu-f); }
.eu-badge-g, .eu-rating-g { background-color: var(--eu-g); }

/* --------------------------------------------------------------------------
   10. Inputs
   -------------------------------------------------------------------------- */
.input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.input:disabled {
  background-color: var(--bg-light);
  cursor: not-allowed;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   11. Sections
   -------------------------------------------------------------------------- */
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-dark {
  background-color: var(--primary-dark);
  color: #fff;
}

.section-dark p {
  color: #CBD5E1;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: #fff;
}

.section-light {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   12. Score Display
   -------------------------------------------------------------------------- */
.score-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.score-circle {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    var(--accent) calc(var(--score, 0) * 3.6deg),
    var(--border) calc(var(--score, 0) * 3.6deg)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-circle::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background-color: var(--bg-white);
}

.score-value {
  position: relative;
  z-index: 1;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.score-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.performance-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.performance-bars .bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.performance-bars .bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 600ms ease-out;
}

/* --------------------------------------------------------------------------
   13. Season Badges
   -------------------------------------------------------------------------- */
.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.season-summer {
  background-color: #FEF3C7;
  color: #92400E;
}

.season-winter {
  background-color: #DBEAFE;
  color: #1E40AF;
}

.season-allseason {
  background-color: #D1FAE5;
  color: #065F46;
}

/* --------------------------------------------------------------------------
   14. Winner / Advantage / Disadvantage / Tie Badges
   -------------------------------------------------------------------------- */
.winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
}

.advantage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: #D1FAE5;
  color: #065F46;
}

.disadvantage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: #FEE2E2;
  color: #991B1B;
}

.tie-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   15. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
}

.hero-gradient h1,
.hero-gradient h2,
.hero-gradient h3 {
  color: #fff;
}

.hero-gradient p {
  color: #CBD5E1;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 50%, rgba(225, 29, 72, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(5, 150, 105, 0.06) 0%, transparent 50%);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #94A3B8;
  max-width: 640px;
  line-height: 1.75;
}

/* Hero finder overrides for dark background */
.hero-gradient .finder-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.hero-gradient .finder-tab {
  color: rgba(255, 255, 255, 0.6);
}

.hero-gradient .finder-tab:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.hero-gradient .finder-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.hero-gradient .finder-field label {
  color: rgba(255, 255, 255, 0.7);
}

.hero-gradient .finder-field select,
.hero-gradient .finder-field input,
.hero-gradient .tire-autocomplete input {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.hero-gradient .finder-field select:focus,
.hero-gradient .finder-field input:focus,
.hero-gradient .tire-autocomplete input:focus {
  background-color: #fff;
  border-color: var(--accent);
}

.hero-gradient .finder-vs,
.hero-gradient .vs-badge {
  color: rgba(255, 255, 255, 0.8);
}

.hero-gradient .compare-finder-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   16. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  color: var(--border-dark);
  user-select: none;
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   17. Ad Slots - Optimized & Aligned
   -------------------------------------------------------------------------- */
.ad-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 1rem auto;
  overflow: hidden;
  min-height: 0;
}

/* Ensure adsbygoogle respects max dimensions */
.ad-banner ins.adsbygoogle {
  max-width: 100%;
}

/* Leaderboard: 728x90 centered */
.ad-leaderboard {
  max-width: 728px;
  max-height: 90px;
  margin: 1rem auto;
}

.ad-leaderboard ins.adsbygoogle {
  max-width: 728px;
  max-height: 90px;
}

/* Sidebar: 300x250 medium rectangle */
.ad-sidebar {
  max-width: 300px;
  max-height: 250px;
  margin: 0 auto 1.5rem auto;
}

.ad-sidebar ins.adsbygoogle {
  max-width: 300px;
  max-height: 250px;
}

/* In-article: rectangle format 336x280 */
.ad-in-article {
  max-width: 336px;
  max-height: 280px;
  margin: 1.5rem auto;
}

.ad-in-article ins.adsbygoogle {
  max-width: 336px;
  max-height: 280px;
}

/* Footer: 728x90 centered */
.ad-footer {
  max-width: 728px;
  max-height: 90px;
  margin: 1.5rem auto 0;
}

.ad-footer ins.adsbygoogle {
  max-width: 728px;
  max-height: 90px;
}

/* Responsive banner with constraints */
.ad-responsive {
  max-width: 728px;
  max-height: 90px;
  margin: 1rem auto;
}

/* Mobile anchor: fixed bottom */
.ad-mobile-anchor {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 50px;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
  padding: 0;
}

.ad-mobile-anchor ins.adsbygoogle {
  max-width: 320px;
  max-height: 50px;
}

/* --------------------------------------------------------------------------
   18. Static Page / Content
   -------------------------------------------------------------------------- */
.static-page {
  padding: 3rem 0;
}

.page-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul,
.page-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.page-content ol {
  list-style: decimal;
}

.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.page-content a:hover {
  color: var(--accent-dark);
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   19. Form Elements
   -------------------------------------------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.form-message.success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-message.error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* --------------------------------------------------------------------------
   20. Post Grid
   -------------------------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

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

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.post-card-content {
  padding: 1.25rem;
}

.post-card-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.post-card-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   21. Brand Grid
   -------------------------------------------------------------------------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.brand-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-slow), opacity var(--transition-slow);
}

.brand-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   22. Pagination
   -------------------------------------------------------------------------- */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 2rem 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background-color: var(--bg-white);
  transition: all var(--transition);
}

.pagination-wrapper a:hover {
  background-color: var(--bg-light);
  border-color: var(--border-dark);
  color: var(--text-primary);
}

.pagination-wrapper .current {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.pagination-wrapper .dots {
  border: none;
  background: none;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   23. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #F97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --------------------------------------------------------------------------
   24. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet landscape and below (1024px) */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero {
    padding: 60px 0;
  }

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

  .brand-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .score-circle {
    width: 100px;
    height: 100px;
  }

  .score-value {
    font-size: 1.75rem;
  }
}

/* Tablet portrait and below (768px) */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

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

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

  .score-hero {
    flex-direction: column;
    text-align: center;
  }

  /* Tablet/Mobile: Ads become responsive banner (320x100 max) */
  .ad-leaderboard,
  .ad-footer,
  .ad-responsive {
    max-width: 100%;
    max-height: 100px;
  }

  .ad-leaderboard ins.adsbygoogle,
  .ad-footer ins.adsbygoogle,
  .ad-responsive ins.adsbygoogle {
    max-width: 100%;
    max-height: 100px;
  }

  .ad-in-article {
    max-width: 100%;
    max-height: 250px;
  }

  .ad-mobile-anchor {
    display: flex;
  }
}

/* Mobile (640px) */
@media (max-width: 640px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .brand-logo {
    padding: 1rem;
  }

  .brand-logo img {
    max-height: 48px;
  }

  .score-circle {
    width: 88px;
    height: 88px;
  }

  .score-value {
    font-size: 1.5rem;
  }

  .pagination-wrapper a,
  .pagination-wrapper span {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .page-subtitle {
    font-size: 1.0625rem;
  }

  /* Mobile sidebar becomes smaller rectangle */
  .ad-sidebar {
    max-width: 100%;
    max-height: 250px;
  }

  .ad-sidebar ins.adsbygoogle {
    max-width: 100%;
    max-height: 250px;
  }
}

/* --------------------------------------------------------------------------
   25. Compare CTA Section - Compact Banner
   -------------------------------------------------------------------------- */
.compare-cta-section {
  padding: 32px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.compare-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-2xl);
  padding: 24px 32px;
  gap: 24px;
}

.compare-cta-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.compare-cta-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compare-cta-icon svg {
  color: white;
}

.compare-cta-text h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.compare-cta-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin: 0;
}

.compare-cta-actions .btn {
  white-space: nowrap;
  padding: 14px 28px;
}

.compare-cta-actions .btn span {
  margin-left: 6px;
  transition: transform var(--transition);
}

.compare-cta-actions .btn:hover span {
  transform: translateX(4px);
}

/* Popular Comparisons Chips */
.popular-comparisons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.popular-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
}

.comparison-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comparison-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all var(--transition);
}

.comparison-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.comparison-chip .vs {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .compare-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .compare-cta-content {
    flex-direction: column;
  }

  .compare-cta-actions {
    width: 100%;
  }

  .compare-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .popular-comparisons {
    justify-content: center;
  }

  .popular-label {
    width: 100%;
    text-align: center;
  }

  .comparison-chips {
    justify-content: center;
  }
}
