/* FestivalSite - minimal styling for the demo page. */

:root {
  --accent: #c2410c;
  --bg: #1c1917;
  --card: #292524;
  --text: #fafaf9;
  --muted: #a8a29e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.card {
  max-width: 34rem;
  width: 100%;
  margin: 2rem;
  padding: 2rem;
  background: var(--card);
  border-radius: 12px;
}

h1 {
  margin-top: 0;
  color: var(--accent);
}

.tagline {
  color: var(--muted);
}

section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #44403c;
}

section h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.1);
}

.greeting {
  margin-top: 0.75rem;
  color: #86efac;
}

.clock {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* HTMX examples page                                                  */
/* ------------------------------------------------------------------ */

.card.wide {
  max-width: 60rem;
}

.back-link {
  margin-top: 0;
}

a {
  color: #fdba74;
}

section h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  color: #fdba74;
}

select,
input[type="text"],
input[type="search"] {
  font: inherit;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #57534e;
  background: #1c1917;
  color: var(--text);
}

.out {
  margin-top: 0.5rem;
  min-height: 1.4rem;
}

.out > :first-child {
  margin-top: 0;
}

.demo-box {
  border: 1px dashed #57534e;
  border-radius: 8px;
  padding: 0.6rem;
  margin-top: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  margin: 0.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #7c2d12;
  font-size: 0.85rem;
  color: var(--text);
}

.empty,
.error {
  color: #fca5a5;
}

.lineup {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.unselected {
  color: var(--muted);
}

/* Loading spinner used by the hx-indicator demos. */
.spinner {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
  border: 2px solid #57534e;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* HTMX toggles "htmx-request" on the indicator while a request runs. */
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.15s ease-in;
}

.htmx-request.htmx-indicator,
.htmx-request .htmx-indicator {
  opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Walkie-talkie page                                                   */
/* ------------------------------------------------------------------ */

.status {
  color: #86efac;
}

.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.wt-list {
  margin-top: 0.5rem;
}

.wt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.7rem;
  margin: 0.35rem 0;
  border: 1px solid #44403c;
  border-radius: 8px;
  background: #1c1917;
}

.wt-row label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.wt-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.wt-audio audio {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Site footer                                                         */
/* ------------------------------------------------------------------ */

.site-footer {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto 1.5rem;
  padding: 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  gap: 0.15rem;
}

.site-footer .footer-brand {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.site-footer .footer-nav {
  margin: 0.15rem 0;
}

.site-footer .footer-nav a {
  margin-right: 1rem;
}

.site-footer .footer-stack {
  margin: 0;
  color: var(--muted);
}

.site-footer .footer-version {
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid #44403c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

