/* Helcom — kalkulator fotowoltaiki i magazynów energii (uzupełnia style.css) */

.calc-step[hidden], [data-scope][hidden], .pv-row[hidden] { display: none !important; }

.calc-breakdown li.pv-head {
  display: block;
  margin-top: 14px;
  padding: 0 0 4px;
  border: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-light);
}

.pv-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.pv-usage input {
  width: 130px;
}
.pv-usage .btn { padding: 10px 16px; }

.pv-subsidy {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--copper-dark);
  border-radius: 8px;
  background: rgba(201, 144, 79, 0.08);
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pv-subsidy strong { color: var(--copper-light); }

/* Szacunek rachunku */
.pv-bill {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.pv-bill-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-light);
}
.pv-bill-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pv-bill-compare > div {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel);
}
.pv-bill-compare span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.pv-bill-compare strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
}
.pv-bill-compare .pv-bill-after { border: 1px solid var(--copper-dark); background: rgba(201, 144, 79, 0.08); }
.pv-bill-compare .pv-bill-after strong { color: var(--copper-light); }
.pv-bill-list { margin-top: 10px; }
.pv-bill-tip {
  margin: 10px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.pv-bill-safe {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--copper);
  border-radius: 0 8px 8px 0;
  background: var(--panel);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.pv-bill-safe strong { color: var(--text); }

.pv-test-banner {
  padding: 10px 16px;
  background: #b45309;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

/* Zdjęcie w nagłówku */
.pv-hero {
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 7;
}
.pv-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
@media (max-width: 600px) { .pv-hero { aspect-ratio: 4 / 3; } }

/* Nasz dom */
.pv-home {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.pv-home h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
}
.pv-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.pv-home-tags li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.pv-home p { margin: 0; color: var(--text-dim); line-height: 1.6; }
#emsRow { margin-top: 12px; }

/* Zrzuty z Home Assistant */
.pv-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.pv-shot {
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s;
}
.pv-shot:hover { border-color: var(--copper); }
.pv-shot img { display: block; width: 100%; height: auto; }
.pv-shot span {
  display: block;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.pv-shot-main { grid-column: 1 / -1; }
@media (max-width: 600px) { .pv-shots { grid-template-columns: 1fr; } }

/* zrzuty w motywie strony: ciemne domyślnie, jasne przy [data-theme="light"] */
.pv-shot .shot-light { display: none; }
[data-theme="light"] .pv-shot .shot-light { display: block; }
[data-theme="light"] .pv-shot .shot-dark { display: none; }
.pv-shot { background: #1c1c1c; }
[data-theme="light"] .pv-shot { background: #fff; }
