/* CarousLab Style Sheet - v3.2 (Visual Polish & Consistent Grid) */

:root {
  --bg-body: #F3F4F6;
  --bg-card: #FFFFFF;
  --bg-header: #1A1A1A;
  --bg-hero: #2A0944;
  --bg-hero-gradient: linear-gradient(135deg, #2A0944 0%, #5D148C 100%);
  
  --color-red: #DC2626;
  --color-green: #22C55E;
  --color-green-hover: #16A34A;
  --color-orange: #F59E0B;
  --color-gold: #FACC15;
  --color-text: #1F2937;
  --color-text-sub: #6B7280;
  
  --container-max: 1200px;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  --radius-md: 12px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); background: var(--bg-body); color: var(--color-text); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin-top: 0; line-height: 1.2; }

/* Utilities */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Buttons Utility */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; font-size: 1rem; }
.btn-primary { background: var(--color-green); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-green-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid #E5E7EB; color: var(--color-text-sub); }
.btn-outline:hover { border-color: var(--color-green); color: var(--color-green); }

/* Header */
.site-header { background: var(--bg-header); color: white; padding: 0.75rem 0; position: sticky; top: 0; z-index: 1000; border-bottom: 2px solid var(--color-red); }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--color-red); display: flex; gap: 0.5rem; }
.logo span { color: white; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a:hover { color: var(--color-red); }

/* Hero */
.hero { background: var(--bg-hero-gradient); color: white; padding: 4rem 0 6rem; position: relative; overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
.hero h1 span { color: var(--color-red); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 2rem; max-width: 650px; margin-left: auto; margin-right: auto; }

/* Trust Badges (Hero) */
.hero-badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: 99px; font-weight: 600; font-size: 0.9rem; backdrop-filter: blur(4px); }
.hero-badge svg { width: 18px; height: 18px; color: var(--color-green); }

/* TrustStack Bar */
.trust-bar-section { margin-top: -2.5rem; position: relative; z-index: 10; margin-bottom: 3rem; }
.trust-stack { background: white; border-radius: 12px; padding: 1.5rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; box-shadow: var(--shadow-lg); align-items: center; border: 1px solid #E5E7EB; }
.trust-item { display: flex; align-items: center; gap: 0.75rem; color: var(--color-text-sub); font-weight: 600; font-size: 0.95rem; }
.trust-item svg { width: 20px; height: 20px; color: var(--color-green); }

/* Benefits Section (Cards) */
.benefits-section { padding: 4rem 0; background: var(--bg-body); }
.benefits-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 2rem; 
  margin-top: 2rem; 
}
.benefit-card { 
  padding: 2rem; 
  background: white; 
  border-radius: var(--radius-md); 
  text-align: center; 
  transition: transform 0.2s, box-shadow 0.2s; 
  box-shadow: var(--shadow-sm); 
  border: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit-icon { 
  width: 56px; 
  height: 56px; 
  background: #FEF2F2; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 1.5rem; 
  color: var(--color-red); 
  font-size: 1.5rem;
}
.benefit-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 700; }
.benefit-card p { font-size: 0.95rem; color: var(--color-text-sub); margin: 0; }

/* Blog Preview Section (Cards) */
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  transition: 0.2s;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 700; line-height: 1.4; }
.blog-card p { color: #666; font-size: 0.95rem; margin-bottom: 1.5rem; }
.link-more { color: var(--color-green); font-weight: 700; display: inline-flex; align-items: center; gap: 0.25rem; }
.link-more:hover { text-decoration: underline; }

/* Rating List */
.rating-section { padding: 0 0 4rem; }
.rating-header-bar {
  background: var(--color-red);
  color: white;
  padding: 1rem;
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 1fr 80px 180px;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 8px 8px 0 0;
  box-shadow: var(--shadow-md);
}
.rating-header-bar div { text-align: center; }

.rating-list { display: flex; flex-direction: column; }
.rating-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-top: none;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 1fr 80px 180px;
  gap: 1rem;
  align-items: center;
  position: relative;
  transition: all 0.2s;
}
.rating-card:hover { background: #F9FAFB; transform: scale(1.005); box-shadow: var(--shadow-md); z-index: 5; border-color: transparent; }
.rating-card:last-child { border-radius: 0 0 8px 8px; border-bottom: 1px solid #E5E7EB; }

/* Column Styles */
.col-rank { font-size: 2.5rem; color: #D1D5DB; font-weight: 300; line-height: 1; text-align: center; }
.col-logo { display: flex; align-items: center; justify-content: center; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--color-text); }
.col-feature { text-align: center; }
.feature-pill { display: inline-block; background: #EEF2FF; color: #4F46E5; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.25rem; }
.feature-text { font-size: 0.9rem; display: block; color: var(--color-text); line-height: 1.3; }
.col-rating { display: flex; flex-direction: column; align-items: center; }
.stars { color: var(--color-gold); font-size: 1.1rem; letter-spacing: 2px; }
.vote-count { font-size: 0.75rem; color: var(--color-text-sub); text-decoration: underline; }
.col-score { display: flex; justify-content: center; }
.score-circle { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--color-text); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; background: white; }
.btn-visit { background: var(--color-green); color: white; font-weight: 700; padding: 0.75rem 0; width: 100%; border-radius: 50px; text-align: center; display: block; font-size: 0.9rem; text-transform: uppercase; box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2); }
.btn-visit:hover { background: var(--color-green-hover); transform: translateY(-1px); box-shadow: 0 6px 10px rgba(34, 197, 94, 0.3); }

/* Badges */
.badge-best { position: absolute; left: -15px; top: 50%; transform: translateY(-50%); background: var(--color-orange); color: white; width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 800; font-size: 0.8rem; line-height: 1.1; border: 3px solid white; box-shadow: var(--shadow-md); z-index: 10; }
.badge-ribbon { position: absolute; top: 0; left: 0; background: var(--color-red); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.75rem; z-index: 10; border-bottom-right-radius: 8px; }

/* FAQ Section */
.faq-section { padding: 4rem 0; background: #fff; }
.faq-grid { display: grid; gap: 1rem; max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
.faq-question { padding: 1.25rem; background: #F9FAFB; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--color-red); }
.faq-answer { padding: 1.25rem; display: none; border-top: 1px solid #E5E7EB; color: var(--color-text-sub); }
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-question::after { content: '−'; }

/* Footer */
.site-footer { background: #111; color: #9CA3AF; padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); /* Force 4 columns */
  gap: 2rem; 
  margin-bottom: 3rem; 
}
.footer-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.footer-col a { display: block; margin-bottom: 0.75rem; color: #9CA3AF; transition: 0.2s; }
.footer-col a:hover { color: white; padding-left: 4px; }
.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* Mobile Responsive */
@media (max-width: 992px) {
  .rating-header-bar { display: none; }
  .rating-card {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "rank logo"
      "feature feature"
      "rating score"
      "cta cta";
    gap: 1rem;
    text-align: left;
    padding: 1.5rem;
  }
  .col-rank { grid-area: rank; text-align: left; font-size: 1.5rem; color: var(--color-red); font-weight: 800; }
  .col-logo { grid-area: logo; justify-content: flex-end; }
  .col-feature { grid-area: feature; text-align: left; border-top: 1px solid #F3F4F6; padding-top: 1rem; }
  .col-rating { grid-area: rating; align-items: flex-start; }
  .col-score { grid-area: score; justify-content: flex-end; }
  .col-cta { grid-area: cta; margin-top: 0.5rem; }
  
  .badge-best { width: 50px; height: 50px; font-size: 0.65rem; left: -10px; top: 20px; transform: none; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .hero h1 { font-size: 2rem; }
  .trust-stack { flex-direction: column; align-items: flex-start; gap: 1rem; }
  
  /* Mobile Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-col { align-items: center; }
}
