/* -- Fonts GOGA -- */
@font-face {
  font-family: 'Goga';
  src: url('../fonts/Goga-Regular.woff2') format('woff2'),
       url('../fonts/Goga-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Goga';
  src: url('../fonts/Goga-Medium.woff2') format('woff2'),
       url('../fonts/Goga-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Goga';
  src: url('../fonts/Goga-Bold.woff2') format('woff2'),
       url('../fonts/Goga-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -- Kleuren -- */
:root {
  --bg-dark: #1b1530;
  --bg-card: #251d44;
  --text-light: #ffffff;
  --text-muted: #bbbbbb;
  --accent: #FF6B00;
  --border: #333333;
}

/* -- Basis reset -- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Goga', sans-serif;
  line-height: 1.6;
  padding: 2rem 1rem;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* -- Koppen -- */
h1 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}
.title-orange {
  color: var(--accent);
}

/* -- Kaarten / containers -- */
.card,
.battery-insight {
  background: #3A3255;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  color: var(--text-light);
  opacity: 0.85;
}
.battery-insight {
  padding: 2rem 1.5rem;
}

/* -- Section Text onder titels -- */
.section-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0.5rem auto 2rem;
  max-width: 700px;
  line-height: 1.5;
}

/* -- Badge groep & grid -- */
.badge-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  align-items: start;
  gap: 2rem;
  padding: 2rem 0;
}


/* -- Info-bubble wrapper (unified) -- */
.info-bubble-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 220px;
  position: relative;
}

/* -- Section titles (boven badges/select) -- */
.section-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

/* -- Bol-badges styling -- */
.price-badge,
.battery-badge,
.summary-badge {
  min-width: 140px;
  height: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 0.63em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 1rem;
  box-shadow: 0 0 8px var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-badge {
  border: 3px solid #FFD600;
  color: #FFD600;
}
.battery-badge {
  border: 3px solid #FF6B00;
  color: #FF6B00;
}
.summary-badge {
  border: 3px solid #FFD600;
  color: #FFD600;
}


/* -- Knop voor batterijtype -- */
.battery-info-box {
  padding: 0.75rem 1.5rem;
  background-color: #1c1635;
  border: 2px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.2s;
  cursor: pointer;
  margin-bottom: 1rem;
}
.battery-info-box:hover {
  transform: scale(1.05);
}
.battery-info-box select {
  background: transparent;
  border: none;
  color: var(--accent);
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
}

/* -- Grafieken (breedte & styling) -- */
.chart-wrapper,
.battery-insight {
  padding: 0 !important;
  margin: 0 auto 3rem;
  max-width: 100%;
  width: 100%;
  border: none;
  background: transparent;
}
#energyChart,
#yearlyEnergyChart {
  background-color: #1c1635;
  border-radius: 16px;
  width: 100%;
  height: auto;
  padding: 1rem;
  box-sizing: border-box;
  display: block;
}

/* -- Verwijder witte tekst onder grafieken -- */
.summary-widget,
#yearTotal {
  display: none !important;
}

/* -- Extra spacing tussen grafiek en jaaroverzicht -- */
.chart-wrapper + .battery-insight {
  margin-top: 2.5rem;
}

/* -- Datum-navigatie -- */
.date-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}
.nav-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: none;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-arrow:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* -- Datuminput: cursor & hover-scale -- */
.date-input {
  flex: 1;
  min-width: 820px;
  max-width: 900px;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--text-light);
  text-align: center;
  box-shadow: 0 0 8px var(--accent);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s;
}
.date-input:hover {
  transform: scale(1.02);
}
.date-input:focus {
  outline: none;
  box-shadow: 0 0 12px #ffdd33;
}
.date-input::-webkit-datetime-edit,
.date-input::-webkit-datetime-edit-year-field,
.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field {
  color: #ffffff !important;
}
.date-input {
  color-scheme: dark;
}

/* -- Intro-sectie styling -- */
.intro-text {
  max-width: 700px;
  margin: 0 0 2rem;
  text-align: left;
}
.intro-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
}
.intro-text p.section-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.info-box {
  flex: 1 1 45%;
  background: var(--bg-card);
  border: 1px solid #ffffff4d;
  border-radius: 0.63em;
  padding: 1rem 1.5rem;
  color: var(--text-light);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.15);
}

.info-box h3 {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.info-box .section-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
}

.info-box-year {
  background: var(--bg-card);
  border-radius: 0.63em;
  border: 1px solid #ffffff4d;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.1);
  max-width: 100%;
 text-align: left;
}

.info-box-year h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
  font-weight: bold;
 text-align: left;
}

.info-box-year .section-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
 text-align: left;
}




/* -- Responsiveness en fluid layout -- */
/* … jouw bestaande stijlen … */

/* -- Responsiveness en fluid layout -- */
html { font-size: 100%; }
@media (max-width: 1200px) { html { font-size: 95%; } }
@media (max-width: 800px)  { html { font-size: 90%; } }
@media (max-width: 500px)  { html { font-size: 85%; } }

/* Badge‑grid op tablets/mobiel */
@media (max-width: 900px) {
  .badge-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Info-row layout voor side-by-side boxen */
.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Datum-navigatie mobiel optimalisatie */
@media (max-width: 600px) {
  .date-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-arrow,
  .date-input {
    width: 100%;
    max-width: 280px;
    text-align: center;
    box-sizing: border-box;
  }
  .date-input {
    min-width: unset;
    padding: 0.5rem 1rem;
  }
}

/* Padding fixes voor kleinere schermen */
@media (max-width: 800px) {
  .chart-wrapper,
  .battery-insight,
  .info-box-year {
    padding: 0 1rem;
  }
}
@media (max-width: 600px) {
  body {
    padding: 1rem 0.5rem;
  }
}

/* Nav-knoppen hitbox vergroten */
.nav-arrow { padding: 0.5rem; }

/* iPad, Surface en grotere tablets (<= 1024px) */
@media (max-width: 1024px) {
  .container { max-width: 90%; }
  .badge-group { grid-template-columns: repeat(2, 1fr); }
  
  .battery-info-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .info-box,
  .info-box-year {
    padding: 1.25rem;
  }
  .info-bubble-wrapper {
    max-width: 100%;
  }
  .info-box {
    flex: 1 1 100%;
  }
  .chart-wrapper,
  .battery-insight,
  .info-box-year {
    padding: 0 1rem;
  }
  .date-nav { max-width: 100%; }
  .date-input {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Extra voor hele kleine schermen (<= 400px) */
@media (max-width: 400px) {
  .badge-group { grid-template-columns: 1fr; }
}
