/* === PowerStationHub Base Styles === */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
  --color-success: #10b981;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* === Header === */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.logo:hover { text-decoration: none; color: var(--color-primary); }

nav a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

nav a:hover { color: var(--color-primary); text-decoration: none; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 650px;
  margin: 0 auto 1rem;
}

.hero .disclosure {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1rem;
}

/* === Intro / Guide sections === */
.intro, .guide-intro, .guide-cta, .related {
  padding: 3rem 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.intro h2, .guide-intro h2, .guide-cta h2, .related h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro p {
  max-width: 750px;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

/* === Rankings / Product Cards === */
.rankings { padding: 3rem 0; }

.rankings h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card.top-pick {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  background: linear-gradient(to bottom, #fffbeb, #ffffff);
}

.rank-badge {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.top-pick .rank-badge {
  background: var(--color-accent);
  color: #1e293b;
}

.product-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.product-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f5f9;
}

.product-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-info .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-success);
  margin-bottom: 0.4rem;
}

.product-info .rating {
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.product-info .summary {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.product-info .specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-info .specs li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.product-info .specs li strong {
  color: var(--color-text);
  font-weight: 600;
}

.commission-note {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  font-size: 1.05rem;
  padding: 0.9rem 1.75rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* === Size Guide === */
.size-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.size-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.size-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.size-card .capacity {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.size-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* === Scenario Cards === */
.scenarios { padding: 3rem 0; background: var(--color-bg); }

.scenarios h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.scenario {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.scenario h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scenario p {
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.scenario a { font-weight: 600; }

/* === Comparison Table === */
.comparison-table-section {
  padding: 3rem 0;
  background: var(--color-surface);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td {
  font-size: 0.95rem;
}

.comparison-table .feature-name {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.comparison-table tbody tr:hover {
  background: #f8fafc;
}

/* === Verdicts === */
.verdicts { padding: 3rem 0; }

.verdict-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.verdict-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.verdict-card p {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

/* === FAQ === */
.faq { padding: 3rem 0; background: var(--color-bg); }

.faq h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* === Guide CTA === */
.guide-cta {
  padding: 3rem 0;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.guide-cta h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.guide-cta p {
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === Footer === */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.site-footer p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.site-footer a { color: #60a5fa; }
.footer-links a { margin: 0 0.5rem; color: #60a5fa; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }

  .site-header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav a { margin: 0 0.5rem; font-size: 0.9rem; }

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

  .product-image img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }

  .product-info .specs {
    grid-template-columns: 1fr;
  }

  .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.5rem; }
  .product-card { padding: 1.25rem; }
  .btn-primary { width: 100%; text-align: center; }
}

/* === Cookie Consent Banner === */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #f1f5f9;
  padding: 1.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  font-size: 0.9rem;
}

.cookie-consent-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-consent-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-buttons .btn-secondary {
  background: #475569;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cookie-consent-buttons .btn-secondary:hover {
  background: #64748b;
}

.cookie-settings-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #334155;
  border-radius: var(--radius);
}

.cookie-settings-panel p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .cookie-consent-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-consent-buttons button {
    width: 100%;
  }
}
