* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background:#0c0c0c; color:#f5f5f5; }
header { position: sticky; top:0; background:#111; padding: 12px 16px; border-bottom:1px solid #222; }
h1 { margin:0 0 8px 0; font-size:18px; }
nav button { margin-right: 8px; background:#1f1f1f; color:#ddd; border:1px solid #333; padding:8px 12px; border-radius:8px; }
nav button.active { background:#2b2b2b; border-color:#444; }
main { padding: 12px; }
.card { background:#131313; border:1px solid #222; border-radius:12px; padding:12px; margin-bottom:12px; }
.card .images { display:flex; gap:6px; overflow:auto; margin-bottom:8px; }
.card .images img { height:120px; border-radius:8px; }
.title { margin: 6px 0; font-size:16px; }
.meta { font-size:12px; color:#aaa; margin-bottom:8px; }
.body { font-size:14px; color:#e8e8e8; }
.actions a { display:inline-block; margin-right:8px; text-decoration:none; }
.filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
#calendar { margin: 8px 0 12px; font-size: 12px; color:#bbb; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.chips .chip { background:#1e1e1e; border:1px solid #2a2a2a; padding:4px 8px; border-radius:999px; font-size:12px; }
a { color:#85b7ff; }

/* News controls */
.news-controls { margin-bottom: 16px; }
.news-calendar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.news-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.news-filters input { background: #1f1f1f; color: #ddd; border: 1px solid #333; padding: 8px 12px; border-radius: 8px; flex: 1; min-width: 200px; }
.news-filters button { background: #1f1f1f; color: #ddd; border: 1px solid #333; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.calendar-btn { background: #1f1f1f; color: #ddd; border: 1px solid #333; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.calendar-btn.active { background: #2b2b2b; border-color: #444; color: #fff; }
.calendar-btn:hover { background: #252525; }
.news-filters button:hover { background: #252525; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 12px 0; }
.pagination button { background: #1f1f1f; color: #ddd; border: 1px solid #333; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.pagination button:hover:not(:disabled) { background: #252525; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
#news-page-info { color: #aaa; font-size: 14px; }

/* Single article styles */
.single-nav { margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-nav button { background: #1f1f1f; color: #ddd; border: 1px solid #333; padding: 8px 16px; border-radius: 8px; cursor: pointer; }
.single-nav button:hover { background: #252525; }

.single-article { background: #131313; border: 1px solid #222; border-radius: 12px; padding: 20px; }
.single-images { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; }
.single-images img { max-height: 300px; border-radius: 8px; object-fit: cover; }
.single-title { margin: 0 0 12px 0; font-size: 24px; color: #fff; }
.single-meta { font-size: 14px; color: #aaa; margin-bottom: 16px; }
.single-body { font-size: 16px; line-height: 1.6; color: #e8e8e8; margin-bottom: 16px; white-space: pre-wrap; }
.single-keywords { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.single-keywords .keyword { background: #1e1e1e; border: 1px solid #2a2a2a; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: #ccc; }
.single-source { display: inline-block; margin-top: 16px; color: #85b7ff; text-decoration: none; font-weight: 500; }
.single-event-info { margin-top: 20px; padding-top: 20px; border-top: 1px solid #222; }
.event-place, .event-organizer { margin-bottom: 12px; }

/* Event details blocks */
.event-details { margin: 12px 0; padding: 12px; background: #0f0f0f; border: 1px solid #1a1a1a; border-radius: 8px; }
.event-place-block, .event-organizer-block, .event-price-block { margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.event-place-block:last-child, .event-organizer-block:last-child, .event-price-block:last-child { margin-bottom: 0; }
.event-label { font-weight: 600; color: #bbb; font-size: 13px; min-width: 100px; }
.event-place-info, .event-organizer-info, .event-price-info { color: #e8e8e8; font-size: 14px; }

/* Single event details blocks */
.single-event-place-block, .single-event-organizer-block, .single-event-price-block { margin-bottom: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.single-event-place-block:last-child, .single-event-organizer-block:last-child, .single-event-price-block:last-child { margin-bottom: 0; }
.single-event-label { font-weight: 600; color: #bbb; font-size: 15px; min-width: 120px; }
.single-event-place, .single-event-organizer, .single-event-price { color: #e8e8e8; font-size: 16px; }
.event-actions { display: flex; gap: 12px; margin-top: 16px; }
.event-actions a { color: #85b7ff; text-decoration: none; }

/* Footer layout for cards */
.footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.footer .keywords { flex: 1; }
.footer .source { white-space: nowrap; }
.footer .actions { display: flex; gap: 8px; white-space: nowrap; }
.footer .actions a { color: #85b7ff; text-decoration: none; }

/* Single article footer */
.single-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 8px; }
.single-footer .single-keywords { flex: 1; }
.single-footer .single-source { white-space: nowrap; }
.single-footer .event-actions { display: flex; gap: 12px; white-space: nowrap; }

/* Keywords styling */
.keywords, .single-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.keywords span, .single-keywords span {
  color: #85b7ff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.keywords span:hover, .single-keywords span:hover {
  opacity: 0.7;
}

/* Clickable place and organizer styling */
.event-place-info[style*="cursor: pointer"]:hover,
.event-organizer-info span[style*="cursor: pointer"]:hover,
.single-event-place[style*="cursor: pointer"]:hover,
.single-event-organizer span[style*="cursor: pointer"]:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.event-place-info[style*="cursor: pointer"],
.event-organizer-info span[style*="cursor: pointer"],
.single-event-place[style*="cursor: pointer"],
.single-event-organizer span[style*="cursor: pointer"] {
  transition: opacity 0.2s, text-decoration 0.2s;
}
