/* Sponty public site — dark theme matching the brainstorm mockups. */

:root {
  --bg: #0f1115;
  --bg-elev: #1a1d26;
  --bg-card: #ffffff;
  --text: #f3f3f6;
  --text-muted: #a4a8b3;
  --text-dark: #111;
  --accent: #ff4b5c;
  --accent-2: #6a5af9;
  --border: #2a2e3a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo .dot { color: var(--accent); }

.site-footer {
  padding: 32px 20px 24px;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Buttons + inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }

.search-input {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  font-size: 16px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,75,92,.2); }

.select {
  height: 42px;
  padding: 0 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}

/* Event card */
.event-card {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: transform .12s, border-color .12s;
}
.event-card:hover { transform: translateY(-1px); border-color: var(--accent); }
.event-card .thumb {
  width: 54px; height: 54px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.event-card .ct { flex: 1; min-width: 0; }
.event-card .title { font-weight: 700; font-size: 14px; }
.event-card .meta { font-size: 12px; color: #666; margin-top: 3px; }
.event-card .src { font-size: 11px; color: #999; margin-top: 4px; }

.event-card .chip {
  display: inline-block;
  background: #ffeff1;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  margin-right: 4px;
}

/* Layouts */
.landing-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.landing-hero .logo { font-size: 44px; margin-bottom: 26px; }
.landing-hero form { width: min(620px, 100%); }
.landing-hero .dropdown-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.landing-hero .dropdown-row .select { flex: 1; }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
}
.results-list-wrap {
  padding: 16px 20px;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
}
.results-map-wrap {
  position: relative;
  min-height: 400px;
}
#map { width: 100%; height: 100%; min-height: 500px; }

@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
  .results-map-wrap { min-height: 300px; order: -1; }
  .landing-hero .dropdown-row { flex-direction: column; }
}

.section-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  background: var(--bg-elev);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.chip.on { background: var(--accent); border-color: var(--accent); }

/* Loading indicator for HTMX */
.htmx-indicator {
  opacity: 0;
  transition: opacity .2s;
}
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }
