/* ============================================================
   BEATMACHER.EVENTS — DJ Request App
   Design System: Dark-first, Bronze accent, Archivo + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Tokens: Dark Mode (default) ---------- */
:root {
  --bg:             #15171A;
  --bg-raised:      #1C1F23;
  --bg-card:        #1C1F23;
  --bg-input:       #111316;
  --bg-input-focus: #0e1012;
  --border:         rgba(245, 243, 239, 0.10);
  --border-strong:  rgba(245, 243, 239, 0.18);
  --border-focus:   #C97D4C;
  --text-primary:   #F5F3EF;
  --text-secondary: #A6ABB3;
  --text-tertiary:  #6B7078;
  --accent:         #C97D4C;
  --accent-hover:   #B56A3A;
  --accent-subtle:  rgba(201, 125, 76, 0.12);
  --success:        #22c55e;
  --success-bg:     rgba(34, 197, 94, 0.10);
  --error-bg:       rgba(239, 68, 68, 0.12);
  --error-border:   rgba(239, 68, 68, 0.35);
  --error-text:     #fca5a5;
  --vote-bg:        rgba(245, 243, 239, 0.06);
  --vote-border:    rgba(245, 243, 239, 0.10);
  --vote-color:     #A6ABB3;
  --vote-active-bg: rgba(201, 125, 76, 0.15);
  --vote-active-border: rgba(201, 125, 76, 0.40);
  --vote-active-color:  #C97D4C;
  --shadow:         0 20px 60px rgba(0,0,0,0.60), 0 4px 16px rgba(0,0,0,0.35);
  --font-display:   'Archivo Expanded', sans-serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-card:    20px;
  --radius-input:   10px;
  --radius-btn:     10px;
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
  --bg:             #F2EDE8;
  --bg-raised:      #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-input:       #F7F4F1;
  --bg-input-focus: #FFFDF9;
  --border:         rgba(30, 20, 10, 0.10);
  --border-strong:  rgba(30, 20, 10, 0.18);
  --border-focus:   #C97D4C;
  --text-primary:   #1A1310;
  --text-secondary: #5A4F48;
  --text-tertiary:  #9E948D;
  --accent:         #B56A3A;
  --accent-hover:   #9E5A2E;
  --accent-subtle:  rgba(181, 106, 58, 0.10);
  --success:        #16a34a;
  --success-bg:     rgba(22, 163, 74, 0.10);
  --error-bg:       rgba(239, 68, 68, 0.08);
  --error-border:   rgba(239, 68, 68, 0.25);
  --error-text:     #dc2626;
  --vote-bg:        rgba(30, 20, 10, 0.05);
  --vote-border:    rgba(30, 20, 10, 0.10);
  --vote-color:     #5A4F48;
  --vote-active-bg: rgba(181, 106, 58, 0.12);
  --vote-active-border: rgba(181, 106, 58, 0.35);
  --vote-active-color:  #B56A3A;
  --shadow:         0 12px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Body ---------- */
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px 40px;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Card Container ---------- */
.container {
  background: var(--bg-card);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  margin-top: 16px;
}

/* ---------- Top bar (accent stripe) ---------- */
.container::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent);
  width: 100%;
}

/* ---------- Header ---------- */
.app-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  flex: 1;
}

.logo-wrap img {
  height: 96px;
  width: auto;
  display: block;
  /* The PNG has transparent bg; works on both dark & light */
}

/* ---------- Mode Toggle ---------- */
.mode-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--vote-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  line-height: 1;
  user-select: none;
}
.mode-toggle:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* ---------- Section: Wunsch-Form ---------- */
.form-section {
  padding: 22px 28px 8px;
}

.form-section h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ---------- Input Groups ---------- */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.input-group label .optional {
  font-size: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.input-group textarea {
  resize: vertical;
  min-height: 48px;
  line-height: 1.4;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.18s, background 0.18s;
  outline: none;
  -webkit-appearance: none;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-tertiary);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--border-focus);
  background: var(--bg-input-focus);
}

/* ---------- Submit Button ---------- */
#submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s, transform 0.1s;
}

#submit-btn:hover:not(:disabled)  { background: var(--accent-hover); }
#submit-btn:active:not(:disabled) { transform: scale(0.98); }
#submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Must-Play (Vorab-/VIP-Wunsch) ---------- */
.vip-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.40);
  color: #ca8a04;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- Datenschutz-Hinweis ---------- */
.datenschutz-hinweis {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin: -6px 0 12px;
}
.datenschutz-hinweis a { color: var(--text-secondary); }

/* ---------- Cooldown-Hinweis ---------- */
.cooldown-info {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- Sekundär-Button (Weiterer Wunsch) ---------- */
.btn-secondary {
  width: 100%;
  padding: 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid var(--vote-active-border);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
}
.btn-secondary:hover  { background: var(--vote-active-bg); }
.btn-secondary:active { transform: scale(0.98); }

.danke-section .cooldown-info { margin-bottom: 22px; }

/* ---------- Divider ---------- */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0 0;
}

/* ---------- Voting Section ---------- */
.voting-section {
  padding: 18px 28px 28px;
}

.voting-section h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.voting-section h3 .fire {
  font-size: 14px;
}

/* ---------- Wunsch Liste ---------- */
.guest-wunsch-liste {
  list-style: none;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.guest-wunsch-liste::-webkit-scrollbar { width: 4px; }
.guest-wunsch-liste::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}

.guest-wunsch-item {
  background: var(--vote-bg);
  border: 1px solid var(--vote-border);
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s, background 0.15s;
}

.guest-wunsch-item:last-child { margin-bottom: 0; }

.guest-song-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}

.guest-song-details p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ---------- Vote Button ---------- */
.btn-vote {
  background: var(--vote-bg);
  border: 1px solid var(--vote-border);
  color: var(--vote-color);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-body);
  transition: all 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-vote:hover:not(.voted) {
  background: var(--vote-active-bg);
  border-color: var(--vote-active-border);
  color: var(--vote-active-color);
  transform: scale(1.04);
}

.btn-vote:active:not(.voted) { transform: scale(0.97); }

.btn-vote.voted {
  background: var(--vote-active-bg);
  border-color: var(--vote-active-border);
  color: var(--vote-active-color);
  cursor: not-allowed;
}

/* ---------- Empty-State Text ---------- */
.empty-state {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 14px 0 4px;
}

/* ---------- Post-Submit: Danke Section ---------- */
.danke-section {
  padding: 28px 28px;
  text-align: center;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 14px;
  line-height: 1;
}

.danke-section h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.danke-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  background: var(--accent-subtle);
  border: 1px solid rgba(201, 125, 76, 0.20);
  padding: 18px;
  border-radius: 14px;
  text-align: left;
}

.promo-banner h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.promo-banner p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.btn-social {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-social:last-child { margin-bottom: 0; }
.btn-social:hover { opacity: 0.88; }
.btn-social:active { transform: scale(0.98); }

.btn-instagram { background: linear-gradient(135deg, #e1306c, #833ab4); }
.btn-website   { background: var(--accent); }

/* ---------- Status / Error Box ---------- */
.status-box {
  margin: 0 28px 18px;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

/* ---------- Utility ---------- */
.hidden { display: none !important; }
