/* ConcertRadar - styles.css
   Local CSS only. No external fonts, libraries or images. */

:root {
  --ink: #070a12;
  --panel: #0e1424;
  --panel-2: #141c31;
  --line: #232e48;
  --line-soft: #1a2238;
  --text: #ecf1fb;
  --muted: #93a0bd;
  --signal: #ffb24a;
  --signal-dim: rgba(255, 178, 74, 0.16);
  --signal-ink: #1b1100;

  --radius: 14px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 85% -8%, rgba(255, 178, 74, 0.07), transparent 60%),
    var(--ink);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* ---------- Demo banner ---------- */

.demo-banner {
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--signal);
  background: var(--signal-dim);
  border-bottom: 1px dashed rgba(255, 178, 74, 0.45);
}

.demo-banner strong {
  font-weight: 700;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 10, 18, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  min-height: 64px;
}

.demo-pill {
  padding: 0.15rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--signal);
  background: var(--signal-dim);
  border: 1px dashed rgba(255, 178, 74, 0.7);
  border-radius: 999px;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  color: var(--signal);
  flex: none;
}

.brand-dot {
  fill: var(--signal);
}

.brand-name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-block: 3.5rem 3rem;
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lede {
  margin-top: 1.25rem;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--muted);
}

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search:focus-within {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim);
}

.search-icon {
  flex: none;
  color: var(--muted);
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.25rem;
  font-size: 1rem;
  background: transparent;
  border: 0;
  outline: none;
}

.search input::placeholder {
  color: var(--muted);
}

.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.chip {
  padding: 0.25rem 0.8rem;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.chip:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.hero-stats {
  margin-top: 1.75rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Radar (the one memorable element) ---------- */

.radar-wrap {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(255, 178, 74, 0.08), transparent 68%),
    var(--panel);
  box-shadow: 0 0 80px rgba(255, 178, 74, 0.06);
}

.radar-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    rgba(255, 178, 74, 0) 0deg,
    rgba(255, 178, 74, 0) 280deg,
    rgba(255, 178, 74, 0.26) 357deg,
    rgba(255, 178, 74, 0.55) 360deg
  );
  animation: sweep 10s linear infinite;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.blip {
  position: absolute;
  width: var(--size, 12px);
  height: var(--size, 12px);
  padding: 0;
  transform: translate(-50%, -50%);
  background: var(--signal);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--signal-dim);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blip::after {
  content: "";
  position: absolute;
  inset: -10px;
}

.blip:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.blip[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--signal);
}

.blip-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  font-size: 0.74rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  text-shadow: 0 0 6px var(--panel), 0 0 2px var(--panel);
  pointer-events: none;
}

.blip[data-side="left"] .blip-label {
  left: auto;
  right: calc(100% + 10px);
}

.blip[aria-pressed="true"] .blip-label {
  color: var(--signal);
  font-weight: 700;
}

.radar-wrap figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  padding-block: 3rem;
  scroll-margin-top: 72px;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.section-sub {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-ticket {
  padding: 0.6rem 1.15rem;
  font-weight: 700;
  color: var(--signal-ink);
  background: var(--signal);
  border: 0;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover,
.btn-ticket:hover {
  background: #ffc674;
}

.btn-primary:active,
.btn-ticket:active {
  transform: translateY(1px);
}

/* "Get tickets" is a <button> in demo mode and an <a> link once real URLs exist. */
.btn-ticket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

.btn-ghost {
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.btn-ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
}

/* ---------- Filters ---------- */

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field span {
  font-size: 0.82rem;
  color: var(--muted);
}

.field select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.field select:hover {
  border-color: #33426a;
}

/* ---------- Concert cards (ticket stubs) ---------- */

.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 1rem;
}

.show-grid[hidden] {
  display: none;
}

.show {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.show:hover {
  border-color: rgba(255, 178, 74, 0.55);
}

.show-date {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1rem 0.5rem;
  text-align: center;
  border-right: 2px dashed var(--line);
}

/* Half-circle notches where the stub "tears" */
.show-date::before,
.show-date::after {
  content: "";
  position: absolute;
  right: -10px;
  width: 18px;
  height: 18px;
  background: var(--ink);
  border-radius: 50%;
}

.show-date::before {
  top: -10px;
}

.show-date::after {
  bottom: -10px;
}

.dow {
  font-size: 0.85rem;
  color: var(--muted);
}

.day {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.05;
}

.mon {
  font-size: 0.95rem;
  font-weight: 600;
}

.yr {
  font-size: 0.8rem;
  color: var(--muted);
}

.show-body {
  display: grid;
  justify-items: start;
  padding: 1.1rem 1.25rem 1.25rem;
}

.badge-demo {
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--signal);
  border: 1px dashed rgba(255, 178, 74, 0.7);
  border-radius: 999px;
}

.show-artist {
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.show-title {
  color: var(--muted);
}

.show-meta {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  margin: 0.8rem 0 1rem;
}

.show-meta div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
}

.show-meta dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.show-meta dd {
  font-size: 0.95rem;
}

/* ---------- Popular artists ---------- */

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 0.75rem;
}

.artist {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.artist:hover {
  border-color: rgba(255, 178, 74, 0.55);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: hsl(var(--hue) 50% 36%);
  border-radius: 50%;
}

.artist-name {
  display: block;
  font-weight: 600;
}

.artist-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Popular cities ---------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0.75rem;
}

.city {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.9rem 1rem;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.city:hover {
  border-color: rgba(255, 178, 74, 0.55);
}

.city-name {
  font-weight: 600;
}

.city-count {
  font-size: 0.9rem;
  color: var(--muted);
}

.city-country {
  font-size: 0.85rem;
  color: var(--muted);
}

.city-bar {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--line-soft);
  border-radius: 2px;
}

.city-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--signal);
  border-radius: 2px;
}

/* ---------- Empty state ---------- */

.empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty[hidden] {
  display: none;
}

.empty h3 {
  font-family: var(--display);
  font-size: 1.4rem;
}

.empty p {
  max-width: 48ch;
  margin: 0.5rem auto 1.25rem;
  color: var(--muted);
}

/* ---------- Dialog ---------- */

dialog {
  width: min(92vw, 440px);
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

dialog::backdrop {
  background: rgba(3, 5, 10, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: 1.5rem;
}

.dialog-inner h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.2;
}

.dialog-inner p:not(.badge-demo) {
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 2rem;
  padding-block: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.footer-inner strong {
  color: var(--text);
}

.affiliate-note {
  flex-basis: 100%;
  color: var(--text);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 2.5rem 2rem;
  }

  .radar-wrap {
    max-width: 440px;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-ghost {
    grid-column: 1 / -1;
  }
}

/* Phones and small tablets: the menu moves to its own row under the logo
   (the header no longer sticks, to save screen space). */
@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 0;
    padding-block: 0.7rem 0.6rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .demo-pill {
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    gap: 0.5rem;
    margin-left: 0;
    margin-top: 0.35rem;
  }

  .site-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 2rem;
    padding-block: 1.75rem 1rem;
  }

  .section {
    padding-block: 2.25rem;
  }

  /* Search: the box on top, a full-width Search button underneath. */
  .search {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  }

  .search input {
    flex: 1 1 0;
    min-height: 44px;
  }

  .search .btn-primary {
    flex: 1 1 100%;
    min-height: 44px;
  }

  .filters {
    gap: 0.6rem;
  }

  .field select {
    min-height: 44px;
  }

  .btn-ghost {
    min-height: 44px;
  }

  .show {
    grid-template-columns: 80px 1fr;
  }

  .day {
    font-size: 2.2rem;
  }

  .show-body {
    padding: 1rem;
  }

  .show-meta div {
    grid-template-columns: 3.6rem 1fr;
  }

  /* Full-width ticket button is easier to tap. */
  .btn-ticket {
    justify-self: stretch;
    min-height: 46px;
  }

  .blip-label {
    display: none;
  }

  .blip:hover .blip-label,
  .blip:focus-visible .blip-label,
  .blip[aria-pressed="true"] .blip-label {
    display: block;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .lede {
    font-size: 1.02rem;
  }
}

/* Touch screens: larger tap areas for the small things. */
@media (pointer: coarse) {
  .blip::after {
    inset: -14px;
  }

  .chip {
    padding: 0.5rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radar-sweep {
    animation: none;
  }

  * {
    transition: none !important;
  }
}
