/* 247SolarCheck — Main Stylesheet */
:root {
  --sun-gold: #f59e0b;
  --sun-dark: #b45309;
  --green: #16a34a;
  --green-light: #dcfce7;
  --blue-sky: #0ea5e9;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --radius: 10px;
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, #1a3a2a 0%, #16a34a 100%);
  color: white;
  padding: 0 20px;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--sun-gold); }
.site-nav a {
  color: rgba(255,255,255,0.85);
  margin-left: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav a:hover { color: white; text-decoration: none; }

/* Main layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-main { padding: 32px 0 60px; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: ' › '; }
.breadcrumb ol { list-style: none; }

/* Page header */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 2rem; font-weight: 800; line-height: 1.2; color: #1a1a1a; margin-bottom: 10px; }
.last-updated { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }

/* Verdict box */
.verdict-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #16a34a;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
  position: relative;
}
.verdict-box .verdict-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.verdict-box .verdict-headline {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.verdict-box .verdict-text { color: #374151; margin-bottom: 18px; }

/* CTA buttons */
.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.45);
  text-decoration: none;
}
.cta-sub { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.8); font-weight: 400; margin-top: 4px; }

/* Affiliate disclosure */
.affiliate-disclosure {
  background: #fef3c7;
  border-left: 4px solid var(--sun-gold);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #92400e;
  margin-bottom: 24px;
  border-radius: 0 6px 6px 0;
}

/* Data tables */
.data-table-wrap { overflow-x: auto; margin: 24px 0; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th {
  background: #f3f4f6;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.data-table tr:hover td { background: #f9fafb; }
.data-table .highlight { font-weight: 700; color: var(--green); }

/* Content sections */
.content-section { margin-bottom: 36px; }
.content-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
  border-left: 4px solid var(--green);
  padding-left: 14px;
}
.content-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #222; }
.content-section p { margin-bottom: 14px; color: #374151; }
.content-section ul { margin: 10px 0 14px 20px; }
.content-section li { margin-bottom: 6px; color: #374151; }

/* CTA card block */
.cta-card {
  background: linear-gradient(135deg, #1a3a2a 0%, #16a34a 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: white;
  margin: 32px 0;
}
.cta-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; color: white; }
.cta-card ul { list-style: none; margin: 0 0 20px; }
.cta-card ul li { padding: 4px 0; padding-left: 22px; position: relative; }
.cta-card ul li::before { content: '✓'; position: absolute; left: 0; color: #86efac; font-weight: 700; }
.cta-card .cta-secondary {
  display: inline-block;
  background: white;
  color: #15803d !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

/* Payback table */
.payback-section { margin-bottom: 36px; }

/* FAQ */
.faq-section { margin-bottom: 36px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  background: #f9fafb;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--green); }
.faq-answer { padding: 16px 20px; color: #374151; border-top: 1px solid var(--border); }

/* Amazon/filler cards */
.amz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.amz-card {
  background: linear-gradient(160deg,#fff, #fdf9f2);
  border: 1px solid #f0d9b0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.amz-card:hover { transform: translateY(-3px); border-color: #ff9900; box-shadow: 0 8px 20px rgba(255,153,0,.22); }
.amz-badge {
  align-self: flex-start;
  background: #232f3e;
  color: #ff9900;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 4px;
}
.amz-title { font-weight: 700; line-height: 1.3; }
.amz-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  font-weight: 700;
  color: #111;
  background: linear-gradient(180deg, #ffd814, #ff9900);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
}
.amz-inline {
  color: #b45309;
  text-decoration: underline;
  text-decoration-color: #f59e0b;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* AWIN inline */
.awin-inline {
  color: #15803d;
  text-decoration: underline;
  text-decoration-color: #86efac;
  text-underline-offset: 2px;
  font-weight: 600;
}

/* Pill strip */
.pill-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.pill {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.pill:hover { background: #dcfce7; text-decoration: none; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--green); line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* Ad slot placeholders */
.ad-slot { min-height: 10px; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #9ca3af;
  padding: 40px 20px;
  margin-top: 60px;
  font-size: 0.88rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h3 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; color: #9ca3af; margin-bottom: 6px; }
.footer-col a:hover { color: white; text-decoration: none; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 20px; color: #6b7280; font-size: 0.8rem; }
.footer-bottom a { color: #9ca3af; margin-right: 16px; }

/* Cookie banner */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 20px;
  z-index: 9999;
  font-size: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn-accept {
  background: var(--sun-gold);
  color: #000;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.cookie-btn-decline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Related pages */
.related-pages { margin: 36px 0; }
.related-pages h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: #374151; }
.related-links { display: flex; gap: 10px; flex-wrap: wrap; }
.related-link {
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 500;
}
.related-link:hover { background: #e5e7eb; text-decoration: none; }

/* Responsive */
@media (max-width: 768px) {
  .page-header h1 { font-size: 1.5rem; }
  .header-inner { height: auto; padding: 14px 0; flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .site-nav a { margin-left: 0; margin-right: 14px; }
  .verdict-box { padding: 18px 18px; }
  .cta-card { padding: 20px 20px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
