/* ══════════════════════════════════════════════
   Svoz odpadu — waste calendar widget
   ══════════════════════════════════════════════ */

.wc-wrap {
  font-family: Inter, system-ui, sans-serif;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Nejbližší svoz ──────────────────────────── */
.wc-next {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  border-left: 6px solid #2E7A32;
  box-shadow: 0 3px 16px rgba(0,0,0,.08);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.wc-next__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 72px;
  height: 72px;
  border-radius: 12px;
  font-weight: 800;
  font-size: .85rem;
  text-align: center;
  padding: 8px;
  line-height: 1.2;
}

.wc-next__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wc-next__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  font-weight: 700;
}

.wc-next__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1B3A6B;
}

.wc-next__date {
  font-size: .88rem;
  color: #555;
}

.wc-next__countdown {
  font-size: 1.5rem;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: -.02em;
}

/* ── Sekce nadpis ────────────────────────────── */
.wc-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1B3A6B;
  margin: 0 0 14px;
}

/* ── Timeline (příští svozy) ─────────────────── */
.wc-upcoming { margin-bottom: 20px; }

.wc-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e8e4db;
  border-radius: 12px;
  padding: 10px 10px 8px;
  min-width: 70px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}

.wc-item:hover {
  box-shadow: 0 4px 16px rgba(27,58,107,.1);
  transform: translateY(-2px);
}

.wc-item--today {
  border-color: #1B3A6B;
  background: #f0f4ff;
  box-shadow: 0 0 0 2px #1B3A6B;
}

.wc-item--tomorrow {
  border-color: #2E7A32;
  background: #f0fff2;
}

.wc-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.wc-item__day {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1B3A6B;
}

.wc-item__month {
  font-size: .72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wc-item__dow {
  font-size: .68rem;
  color: #aaa;
}

.wc-item__chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  min-width: 52px;
}

.wc-item__tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #1B3A6B;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

.wc-item__tag--tmrw { background: #2E7A32; }

/* ── Legenda ──────────────────────────────────── */
.wc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 24px;
}

.wc-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #555;
}

.wc-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Roční přehled (details) ──────────────────── */
.wc-year-details {
  background: #fff;
  border: 1px solid #e8e4db;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.wc-year-summary {
  padding: 14px 20px;
  cursor: pointer;
  font-weight: 700;
  color: #1B3A6B;
  font-size: .95rem;
  background: #f8f6f1;
  list-style: none;
  user-select: none;
}
.wc-year-summary::-webkit-details-marker { display: none; }
.wc-year-summary::before { content: '▶ '; font-size: .75rem; }
.wc-year-details[open] .wc-year-summary::before { content: '▼ '; }

.wc-year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: #e8e4db;
  padding: 1px;
}

.wc-month {
  background: #fff;
  padding: 14px;
}

.wc-month--current {
  background: #f0f4ff;
}

.wc-month__header {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1B3A6B;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8e4db;
}

.wc-month--current .wc-month__header {
  border-bottom-color: #1B3A6B;
}

.wc-month__items { display: flex; flex-direction: column; gap: 5px; }

.wc-month__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wc-month__row--past {
  opacity: .35;
}

.wc-month__date {
  font-size: .8rem;
  color: #333;
  min-width: 44px;
}

.wc-month__date small {
  color: #aaa;
  font-size: .72rem;
}

.wc-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* ── Zdroj ────────────────────────────────────── */
.wc-source {
  font-size: .75rem;
  color: #999;
  margin-top: 12px;
  text-align: center;
}

/* ── Mobilní layout ───────────────────────────── */
@media (max-width: 600px) {
  .wc-next {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }
  .wc-next__countdown {
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
  }
  .wc-timeline { gap: 6px; }
  .wc-item { min-width: 62px; padding: 8px 6px; }
  .wc-item__day { font-size: 1.1rem; }
  .wc-year-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .wc-year-grid { grid-template-columns: 1fr; }
}
