/* ══════════════════════════════════════════════════════
   Důležité informace pro občany — frontend styles
   ══════════════════════════════════════════════════════ */

/* Reset — zabraň bleeding z post-content ul/li stylů */
.di-list, .di-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.di-list li::before { display: none !important; content: '' !important; }

/* ── Box wrapper ─────────────────────────────────────── */
.di-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 28px rgba(27,58,107,.10);
  overflow: hidden;
  margin: 48px auto;
  max-width: 900px;
}

.di-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(135deg, #1B3A6B 0%, #2a4f8f 100%);
  color: #fff;
}

.di-box__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.di-box__icon { font-size: 1.3rem; }

.di-box__all {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.di-box__all:hover { color: #fff; }

.di-box__footer {
  padding: 14px 28px;
  border-top: 1px solid #f0ede6;
  text-align: center;
}

.di-btn-all {
  display: inline-block;
  background: #1B3A6B;
  color: #fff !important;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s;
}
.di-btn-all:hover { background: #2a4f8f; }

/* ── Položka ─────────────────────────────────────────── */
.di-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #f0ede6;
  border-left: 4px solid transparent;
  transition: background .15s;
  position: relative;
}
.di-item:last-child { border-bottom: none; }
.di-item:hover { background: #fafaf8; }

/* Urgentní */
.di-item--urgent {
  border-left-color: #c0392b !important;
  background: #fff8f7;
}

/* ── Barevné zvýraznění podle typu svozu ─────────────── */
.di-item.waste-bio     { border-left-color: #2E7A32; background: #f3faf3; }
.di-item.waste-bio:hover { background: #eaf5ea; }

.di-item.waste-plast   { border-left-color: #e65100; background: #fff8f3; }
.di-item.waste-plast:hover { background: #fff0e6; }

.di-item.waste-papir   { border-left-color: #1565c0; background: #f0f5ff; }
.di-item.waste-papir:hover { background: #e6efff; }

.di-item.waste-sko     { border-left-color: #757575; background: #fafafa; }
.di-item.waste-sko:hover { background: #f2f2f2; }

.di-item.waste-nebezpecny { border-left-color: #c0392b; background: #fff5f5; }
.di-item.waste-sklo    { border-left-color: #00838f; background: #f0fafa; }

/* ── Ikona/typ vlevo ─────────────────────────────────── */
.di-item__type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 12px 16px 16px;
  min-width: 76px;
  text-align: center;
}

/* Barevné ikony svozu */
.di-item.waste-bio     .di-item__icon { color: #2E7A32; }
.di-item.waste-plast   .di-item__icon { color: #e65100; }
.di-item.waste-papir   .di-item__icon { color: #1565c0; }
.di-item.waste-sko     .di-item__icon { color: #616161; }
.di-item.waste-nebezpecny .di-item__icon { color: #c0392b; }
.di-item.waste-sklo    .di-item__icon { color: #00838f; }

.di-item__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
  line-height: 1;
}

.di-item__type-label {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #888;
}

/* ── Tělo ────────────────────────────────────────────── */
.di-item__body {
  flex: 1;
  padding: 14px 20px 14px 8px;
  min-width: 0;
}

.di-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1B3A6B;
  margin: 0 0 5px;
  line-height: 1.35;
}

/* Barevné nadpisy svozu */
.di-item.waste-bio    .di-item__title { color: #1e5422; }
.di-item.waste-plast  .di-item__title { color: #bf360c; }
.di-item.waste-papir  .di-item__title { color: #0d47a1; }

.di-item__summary {
  font-size: .87rem;
  color: #555;
  margin: 0 0 6px;
  line-height: 1.5;
}

/* ── Připomínka svozu ────────────────────────────────── */
.di-item__reminder {
  font-size: .82rem;
  color: #444;
  background: rgba(0,0,0,.04);
  border-radius: 6px;
  padding: 7px 10px;
  margin: 6px 0 8px;
  line-height: 1.5;
  border-left: 3px solid currentColor;
}
.di-item.waste-bio   .di-item__reminder { border-left-color: #2E7A32; }
.di-item.waste-plast .di-item__reminder { border-left-color: #e65100; }
.di-item.waste-papir .di-item__reminder { border-left-color: #1565c0; }
.di-item.waste-sko   .di-item__reminder { border-left-color: #757575; }

/* ── Priorita badge ──────────────────────────────────── */
.di-item__prio {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.di-prio--critical  { background: #c0392b; color: #fff; }
.di-prio--important { background: #e67e22; color: #fff; }
.di-prio--normal    { background: #2E7A32; color: #fff; }
.di-prio--low       { background: #888;    color: #fff; }

/* ── Meta info ───────────────────────────────────────── */
.di-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: .77rem;
  color: #777;
}

.di-item__time,
.di-item__loc,
.di-item__source,
.di-item__updated { display: flex; align-items: center; gap: 3px; }

.di-item__source a { color: #1B3A6B; }
.di-item__source a:hover { text-decoration: underline; }

/* ── Detail expand ───────────────────────────────────── */
.di-item__actions { padding: 0 20px 12px 8px; }

.di-item__detail-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .8rem;
  cursor: pointer;
  color: #555;
  transition: all .15s;
}
.di-item__detail-btn:hover { background: #f5f5f5; }
.di-item__detail-btn[aria-expanded="true"] { border-color: #1B3A6B; color: #1B3A6B; }

.di-item__detail {
  padding: 12px 20px 16px;
  background: rgba(0,0,0,.03);
  font-size: .87rem;
  line-height: 1.6;
  border-top: 1px solid #eee;
}
.di-item__detail--open { display: block; }

/* ── Archive page ────────────────────────────────────── */
.di-archive { max-width: 900px; margin: 0 auto; }

.di-archive__filters {
  background: #f8f6f1;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.di-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.di-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.di-filter-group label {
  font-size: .75rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.di-filter-group select {
  padding: 7px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: .9rem;
  background: #fff;
}

.di-filter-btn {
  background: #1B3A6B;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.di-filter-btn:hover { background: #2a4f8f; }

.di-filter-reset { color: #888; font-size: .85rem; text-decoration: none; align-self: center; }
.di-filter-reset:hover { color: #333; }

.di-archive__count { font-size: .88rem; color: #666; margin-bottom: 12px; }

.di-archive__empty { text-align: center; padding: 40px; color: #888; }

.di-list--full {
  border: 1px solid #e8e4db;
  border-radius: 12px;
  overflow: hidden;
}
.di-list--full .di-item__detail--open { padding: 12px 20px; }

/* ── Mobilní layout ──────────────────────────────────── */
@media (max-width: 600px) {
  .di-box { border-radius: 10px; margin: 24px 0; }
  .di-box__header { padding: 14px 16px; }
  .di-box__title { font-size: .97rem; }
  .di-box__footer { padding: 12px 16px; }

  .di-item { flex-wrap: wrap; }

  .di-item__type {
    flex-direction: row;
    gap: 8px;
    padding: 12px 16px 0;
    min-width: auto;
    width: 100%;
    justify-content: flex-start;
  }
  .di-item__icon { font-size: 1.3rem; margin-bottom: 0; }
  .di-item__body { padding: 6px 16px 14px; }
  .di-item__title { font-size: .95rem; }
  .di-item__meta { gap: 5px 10px; font-size: .73rem; }
  .di-filter-form { flex-direction: column; }
  .di-filter-group select { width: 100%; }
  .di-filter-btn { width: 100%; }
}
