@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap");

/* "Midnight Passion" — velvet, candlelight, hidden doors. Red is the accent, gold is used
   sparingly for premium touches, black/charcoal carries most of the weight. */
:root {
  --bg: #0b0b0c;
  --bg-card: #161618;
  --bg-card-alt: #1d0f13;
  --red: #d4001f;
  --red-hover: #f02a3a;
  --red-deep: #7f0014;
  --burgundy: #5b0b16;
  --gold: #c8a96a;
  --gold-soft: #ddc292;
  --text: #f4f1ec;
  --text-body: #d5d1cb;
  --text-muted: #a5a3a0;
  --border: #2a2a2d;
  --danger: #f02a3a;
  --success: #7fbf8f;
  --green-light: #a8dab5;
  --green-deep: #2f9e56;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #0b0b0c 0%, #161618 100%);
  color: var(--text-body);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  color: var(--text);
  margin-top: 0;
}

h1 {
  font-size: 2.4rem;
}

.tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

a.button,
button {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

a.button:hover,
button:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

a.secondary,
button.secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

a.secondary:hover,
button.secondary:hover {
  background: rgba(200, 169, 106, 0.12);
  color: var(--gold-soft);
}

button.danger {
  background: var(--danger);
  color: #ffffff;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1rem 0 0.35rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b0b0c;
  color: var(--text);
  font-size: 1rem;
}

input:focus {
  outline: 2px solid var(--red);
}

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

.badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--gold), var(--red));
  color: #ffffff;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.nominator-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nominator-list li::before {
  content: "\2022  ";
}

.nominator-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.edit-only {
  display: none;
}

.nominator-list.editing .edit-only {
  display: inline-flex;
}

.nominator-add-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.nominator-add-row input[type="text"] {
  flex: 1;
}

.nominator-add-row button {
  flex-shrink: 0;
}

.name-form-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.name-form-row input[type="text"] {
  flex: 1;
  min-width: 0;
}

@media (max-width: 480px) {
  .name-form-row {
    flex-direction: column;
  }
}

details summary {
  font-family: "Playfair Display", serif;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.75rem;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--red);
  transition: transform 0.15s ease;
}

details[open] summary::after {
  content: "\2212";
}

.details-body {
  margin-top: 0.9rem;
}

.details-body p:first-child {
  margin-top: 0;
}

.details-body p:last-child {
  margin-bottom: 0;
}

.counter {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  min-width: 2ch;
  text-align: center;
}

.counter--low {
  color: var(--danger);
}

.counter--mid {
  color: var(--green-light);
}

.counter--full {
  color: var(--green-deep);
}

.dancer-row {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.dancer-row:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.dancer-row-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dancer-name {
  margin-right: auto;
  color: var(--text);
}

.status-icon {
  font-size: 1.1rem;
}

.dancer-row-main button {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.icon-button {
  padding: 0.4rem 0.6rem !important;
  font-size: 1rem !important;
  line-height: 1;
}

.icon-button.danger-armed {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.icon-button.contact-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button.contact-toggle.contacted {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #ffffff;
}

.dancer-row details summary {
  font-family: inherit;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

.actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.invite-link {
  font-family: monospace;
  font-size: 0.85rem;
  background: #0b0b0c;
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  word-break: break-all;
}

.notice {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.notice.info {
  background: rgba(200, 169, 106, 0.12);
  color: var(--gold-soft);
}

.notice.success {
  background: rgba(127, 191, 143, 0.15);
  color: var(--success);
}

.notice.error {
  background: rgba(240, 42, 58, 0.15);
  color: var(--danger);
}

nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

nav.top a {
  color: var(--text-muted);
  text-decoration: none;
}

nav.top a:hover {
  color: var(--red-hover);
}
