/* ============================================================
   CSS = how things LOOK.

   A rule has two parts:
     selector { properties }

   selector  = which HTML tag (body, h1, .card, #search)
   properties = color, size, space, etc.

   .card means "any tag with class='card'"
   #search means "the tag with id='search'"
   ============================================================ */

:root {
  --bg: #0c0b10;
  --bg-2: #16141d;
  --line: #2c2936;
  --text: #f4efe6;
  --muted: #b7b0a4;
  --muted2: #c0b9ae;
  --accent: #ff4d8d;
  --accent-2: #c8ff4d;
  --card: #1c1924;
  --accent-3: #b119b3;
    --accent-4:#ced2dc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
background: radial-gradient(1200px 500px at 10% -60px, #3a1630 0%, transparent 50%), var(--bg);
    var(--bg);
  color: var(--text);
}

code {
  font-family: Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent-2);
}

.hero {
  padding: 48px 24px 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.95;
  margin: 0 0 12px;
  font-weight: 500;
}

.lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.filters {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

input,
select,
button {
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

button {
  font-family: system-ui, sans-serif;
  cursor: pointer;
  height: 42px;
}

button:hover,
.card:hover {
  border-color: var(--accent);
}

.count {
  max-width: 1100px;
  margin: 0 auto 8px;
  padding: 0 24px;
  font-family: system-ui, sans-serif;
  color: var(--muted);
  font-size: 14px;
}

.cards {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  cursor: pointer;
  min-height: 220px;
}

.card-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pill,
.tag {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.pill-today {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.card h2 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 500;
}

.venue,
.when {
  margin: 0 0 6px;
  color: var(--muted);
}

.venue-name {
  color: var(--accent-4);
}

dialog .venue {
  font-size: 20px;
  color: var(--accent-4);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.price {
  margin: 16px 0 0;
  font-size: 20px;
  color: var(--accent);
  font-family: "Noto Serif", Georgia, serif;
}

.empty {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
}

dialog {
  width: min(520px, 92vw);
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
}

dialog a {
  font-size: 17px;
  color: var(--accent-3);
  text-decoration: none;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

#closeDialog {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
}

dialog h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
}

dt {
  font-family: system-ui, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

dd {
  margin: 0;
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

option.quick {
  color: #ff4d8d;
  font-weight: 700;
}
.description {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.4;
  color: #d8d2c8;
}
input[type="date"] {
  color-scheme: dark;
}
.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  border-top: 1px solid var(--line);
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 6px;
}

#musicFilter option[value="all"],
#musicFilter optgroup {
  color: var(--accent);
  font-weight: 700;
}

/* Obične opcije unutar grupa ostaju normalne boje */
#musicFilter optgroup option {
  color: var(--text);
  font-weight: 400;
}
#musicFilter option.group-all {
  font-weight: 700;
}
.card {
  position: relative;
}

.card.halloween {
  background: #563011;
  border-color: #a45e24;
}

.filter {
  min-width: 0;
}

.filter input,
.filter select {
  width: 100%;
  min-width: 0;
}

@media (max-width: 500px) {
  .filters .filter:first-child {
    grid-column: 1 / -1;
  }
}

body {
  font-family: "Inter", system-ui, sans-serif;
}

h1, .card h2, dialog h2 {
  font-family: "DM Serif Display", Georgia, serif;
}
.card h2 {
  font-family: "Tiro Bangla", Georgia, serif;
  color: #e0dcd5;
}
.card .venue,
.card .when {
  font-family: "Noto Serif", Georgia, serif;
}
.logo {
  height: 64px;
  display: block;
  margin-bottom: 20px;
}
.lede {
  font-family: "Tiro Bangla", Georgia, serif;
}
/* Party, pop, domaće */
.tag-party, .tag-pop, .tag-turbo-folk, .tag-ex-yu, .tag-domaće, .tag-tribute {
  color: #ff7aa8; border-color: #ff7aa8; background: rgba(255, 122, 168, 0.08);
}

/* Elektronika */
.tag-electronic, .tag-house, .tag-techno {
  color: #9db4d4; border-color: #9db4d4; background: rgba(157, 180, 212, 0.08);
}

/* Gitare */
.tag-rock, .tag-metal, .tag-punk, .tag-alternative {
  color: #e0605a; border-color: #e0605a; background: rgba(224, 96, 90, 0.08);
}

/* Jazz, klasika, world */
.tag-jazz, .tag-soul, .tag-world, .tag-classical {
  color: #d9b45a; border-color: #d9b45a; background: rgba(217, 180, 90, 0.08);
}

/* Hip-hop */
.tag-hip-hop {
  color: #6fcf97; border-color: #6fcf97; background: rgba(111, 207, 151, 0.08);
}

/* Dekade */
.tag-70s, .tag-80s, .tag-90s, .tag-2000s, .tag-2010s {
  color: #f2994a; border-color: #f2994a; background: rgba(242, 153, 74, 0.08);
}

/* Kultura i ostalo */
.tag-film, .tag-games, .tag-talk, .tag-workshop, .tag-exhibition,
.tag-theatre, .tag-comedy, .tag-sport, .tag-show, .tag-fair {
  color: #b39ddb; border-color: #b39ddb; background: rgba(179, 157, 219, 0.08);
}

dialog .venue,
dialog dd,
dialog .description {
  font-family: "Noto Serif", Georgia, serif;
}

dialog h2 {
  font-family: "Tiro Bangla", Georgia, serif;
}

.time {
  background: rgba(244, 239, 230, 0.1);
  color: var(--muted2);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 400;
}
dialog .time {
  color: inherit;
}