/* EnerCtrl One — custom styling bovenop Tailwind (CDN)
 * Kleurpalet gesynchroniseerd met de firmware-UI voor herkenbare huisstijl. */

:root {
  /* Base — 1:1 uit html_page.h */
  --bg:            #0f1117;      /* page background (donker) */
  --bg-elev:       #1a1d27;      /* cards */
  --border:        #2a2d3e;      /* card borders */
  --text:          #e0e3f0;      /* body / headings */
  --text-muted:    #a0a4bc;      /* secondary tekst */
  --label:         #c8ccde;      /* form-labels, iets lichter dan muted */
  /* Accenten */
  --accent:        #f5a623;      /* solar-yellow — hoofd-accent */
  --accent-hover:  #ffbf47;      /* hover-versie */
  --grid-blue:     #4a90d9;      /* netvermogen / info */
  --bat-green:     #27ae60;      /* accu / success */
  --success:       #27ae60;      /* alias voor consistentie */
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Navigatiebalk */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(26, 29, 36, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav a { color: var(--text-muted); transition: color .15s; }
.nav a:hover, .nav a.active { color: var(--accent); }
.brand { color: var(--text); font-weight: 700; letter-spacing: .5px; }
.brand-accent { color: var(--accent); }

/* Hero */
.hero {
  background: radial-gradient(ellipse at top,
    rgba(245, 166, 35, 0.10) 0%,
    transparent 60%);
}
.hero h1 { color: var(--text); font-weight: 800; letter-spacing: -0.5px; }
.hero .lead { color: var(--text-muted); }

/* Cards & buttons */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: transform .15s, border-color .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { color: var(--text); font-weight: 600; }
.card p  { color: var(--text-muted); }

.btn-solar {
  background: var(--accent); color: #1a1d24;
  padding: 12px 28px; border-radius: 6px;
  font-weight: 600; display: inline-block;
  transition: background .15s;
}
.btn-solar:hover { background: var(--accent-hover); }

.btn-outline {
  color: var(--accent); border: 1px solid var(--accent);
  padding: 11px 26px; border-radius: 6px;
  font-weight: 600; display: inline-block;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--accent); color: #1a1d24; }

/* Feature-strip iconen */
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(245, 166, 35, 0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}

/* Prijskaart accent */
.pricing-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.15);
}
.pricing-card .badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent); color: #1a1d24;
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 12px;
}
.pricing-card .price { color: var(--accent); font-size: 36px; font-weight: 700; }
.pricing-card .price-suffix { color: var(--text-muted); font-size: 14px; }

/* Compatibiliteit tabellen / lijsten */
.compat-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.compat-item .status.ok        { color: var(--bat-green); }   /* firmware-consistent groen */
.compat-item .status.beta      { color: var(--accent); }
.compat-item .status.planned   { color: var(--text-muted); }

/* Blog / updates */
.post-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.post-meta { color: var(--text-muted); font-size: 14px; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--accent); }

/* Formulier — matcht firmware dashboard styling */
.form-input, .form-textarea, .form-select {
  background: #12141e;          /* zelfde donker als firmware form-control */
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(245,166,35,.2);   /* zelfde glow als firmware */
}
.form-label { color: var(--label); font-size: 14px; font-weight: 500; margin-bottom: 4px; display: block; }

/* Footer — nog ietsjes donkerder dan de rest voor visual separation */
footer {
  background: #0a0c11;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* Utility */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.bg-elev     { background: var(--bg-elev); }
