/**
 * stav-site-outages.css — P1-6
 * Sekce pro planovane vypadky a aktivni incidenty. Zobrazuje se jen
 * pokud v stav-site.json jsou data v poli planned_outages[] nebo active_incidents[].
 */

.vhv-outages-section {
  margin: 2rem auto;
  max-width: 960px;
  padding: 0 1rem;
}

.vhv-outages-section h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: #03274b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vhv-outages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.vhv-outage-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  align-items: start;
}

.vhv-outage-item--incident {
  border-left-color: #da251d;
  background: #fef2f2;
}

.vhv-outage-item--planned {
  border-left-color: #0061a5;
}

.vhv-outage-icon {
  font-size: 1.5rem;
  line-height: 1;
  padding-top: 2px;
}

.vhv-outage-body {
  display: grid;
  gap: 0.25rem;
}

.vhv-outage-area {
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

.vhv-outage-time {
  color: #475569;
  font-size: 0.9rem;
}

.vhv-outage-reason {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.5;
}

.vhv-outage-note {
  font-size: 0.9rem;
  color: #475569;
  font-style: italic;
  padding-top: 0.25rem;
}

/* Hidden default — JS ukaze pokud data prijdou */
.vhv-outages-section[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .vhv-outage-item {
    padding: 0.85rem 1rem;
    grid-template-columns: 1fr;
  }
  .vhv-outage-icon {
    font-size: 1.25rem;
  }
}
