/* After Party Express — dark neon theme.
   Plain surfaces are near-black; purple lives only in borders/accents.
   Neon pink #FF2E63 is the single accent on "Live right now" cards. */

:root {
  --pink: #ff2e63;
  --blue: #29c7ff;
  --purple: #8b5cf6;
  --ink: #f5f2fa;
  --muted: #b9b3c9;
  --surface: rgba(8, 8, 14, 0.88);
  --surface-solid: #0a0a12;
  --border: rgba(139, 92, 246, 0.45);
  --border-soft: rgba(139, 92, 246, 0.25);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: #05050f;
  min-height: 100vh;
}

/* Fixed full-screen background artwork */
#bg {
  position: fixed;
  inset: 0;
  background: url("/assets/after-party-bg.webp") center / cover no-repeat #05050f;
  z-index: 0;
}
#bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 10, 0.35);
}

#app { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 14px 48px; }

/* Splash */
#splash {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  background: #05050f;
  transition: opacity 0.45s ease;
}
#splash img { width: 100%; height: 100%; object-fit: cover; display: block; }
#splash.hide { opacity: 0; pointer-events: none; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px 10px;
  flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 46, 99, 0.65), 0 0 30px rgba(41, 199, 255, 0.35);
}
.brand-tag { color: var(--blue); font-size: 0.95rem; font-weight: 600; }

/* Header account area (login state) */
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#account-area { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-chip {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.account-chip:hover { color: #fff; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--pink); background: var(--surface-solid);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; flex: none;
}
.avatar-fallback { background: rgba(139, 92, 246, 0.35); font-size: 1rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; border-width: 3px; }
.avatar-md { width: 54px; height: 54px; font-size: 1.3rem; }

/* Profiles + friends */
.profile-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-head h2 { margin: 0 0 2px; }
.person-row {
  display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--border-soft); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.03);
}
.person-row .who { font-weight: 700; }
.person-row .what { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.person-row .grow { flex: 1; min-width: 0; }
.person-row a { color: var(--blue); }

.site-footer { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 40px; border-top: 1px solid var(--border); padding-top: 14px; }
.site-footer .credit {
  color: var(--muted); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.4px;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
}
.btn:hover { border-color: var(--purple); }
.btn-primary {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 46, 99, 0.5);
}
.btn-blue { background: var(--blue); border-color: var(--blue); color: #04121c; }
.btn-install {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 46, 99, 0.5);
}
.btn-ghost { background: transparent; }
.btn-small { padding: 9px 16px; font-size: 1rem; min-height: 40px; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* Sections + cards */
.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 26px 0 10px;
  color: #fff;
}
.section-title .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 10px var(--pink); margin-right: 8px;
}
.empty-note { color: var(--muted); margin: 4px 0 10px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(3px);
}
.card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.card .meta { color: var(--muted); font-size: 0.92rem; margin: 2px 0; }
.card .theme { color: var(--blue); font-weight: 600; }

/* Live cards: one single neon pink accent — top line + progress bar */
.card.live { border-top: 4px solid var(--pink); }
.progress {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12);
  overflow: hidden; margin-top: 10px;
}
.progress > div { height: 100%; background: var(--pink); box-shadow: 0 0 10px rgba(255,46,99,.7); }

/* Cover images: rounded frame with the neon pink accent border */
.cover-frame {
  border: 2px solid var(--pink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(255, 46, 99, 0.35);
  margin-bottom: 12px;
  background: var(--surface-solid);
}
.cover-frame img { display: block; width: 100%; object-fit: cover; }
.card .cover-frame img { height: 180px; }
.party-cover img { height: 280px; }
input[type="file"] { padding: 8px 12px; }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.4px;
  padding: 2px 9px; border-radius: 999px; vertical-align: middle;
}
.badge-live { background: var(--pink); color: #fff; }
.badge-giveaway { background: transparent; border: 1px solid var(--purple); color: #d9ccff; }
.badge-host { background: var(--pink); color: #fff; }
.badge-cohost { background: var(--blue); color: #04121c; }
.badge-mod { background: transparent; border: 1px solid #ffd23f; color: #ffd23f; }

/* Party crew */
.crew-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.crew-name { font-weight: 700; }

/* Search + forms */
.search-bar { margin: 14px 0 4px; }
input, select, textarea {
  width: 100%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  margin-top: 4px;
}
label { display: block; font-weight: 600; margin: 12px 0 0; font-size: 0.95rem; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.checkbox-row input { width: auto; margin: 0; }
.form-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.error { color: #ff8fab; font-weight: 600; margin-top: 10px; }
.hint { color: var(--muted); font-size: 0.88rem; }

/* Party page / lineup */
.party-head h2 { margin: 8px 0 2px; }
.lineup { list-style: none; margin: 14px 0; padding: 0; }
.slot {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.slot .when { color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.slot .who { font-weight: 700; margin-top: 2px; }
.slot .what { color: var(--muted); font-size: 0.92rem; }
.slot .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.slot.open .who { color: var(--muted); font-weight: 600; }
.slot.on-now { border: 2px solid var(--pink); box-shadow: 0 0 18px rgba(255, 46, 99, 0.35); }
.slot.up-next { border-color: var(--blue); }

.host-board {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin: 18px 0;
}
.host-board h3 { margin-top: 0; }
.host-board .now-line { font-size: 1.05rem; margin: 6px 0; }
.host-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Requests, waitlist, notes, chat */
.sub-title { margin: 16px 0 8px; font-size: 1.02rem; }
.req-row {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.req-row .who { font-weight: 700; }
.req-row .what { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.req-row .row, .slot .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.req-row select { width: auto; flex: 1 1 180px; margin-top: 0; }
.req-row a { color: var(--blue); }
.badge-pending { background: transparent; border: 1px solid var(--blue); color: var(--blue); }
.badge-approved { background: var(--pink); color: #fff; }
.badge-declined { background: transparent; border: 1px solid var(--muted); color: var(--muted); }

.invite-code {
  font-size: 1.35rem; font-weight: 800; letter-spacing: 3px; color: #fff;
  text-shadow: 0 0 12px rgba(255, 46, 99, 0.8);
}

.notes-display {
  white-space: pre-wrap;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
  line-height: 1.45;
}

.chat-box {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--surface-solid);
  padding: 10px 12px;
  height: 300px;
  overflow-y: auto;
  margin-top: 8px;
}
.chat-msg { padding: 6px 0; border-bottom: 1px solid rgba(139, 92, 246, 0.15); line-height: 1.4; }
.chat-msg:last-child { border-bottom: none; }
.chat-who { font-weight: 800; color: #fff; }
.chat-when { color: var(--muted); font-size: 0.8rem; }
.chat-form { display: flex; gap: 8px; margin-top: 10px; }
.chat-form input { flex: 1; margin-top: 0; }

details.past { margin-top: 8px; }
details.past > summary {
  cursor: pointer; font-size: 1.15rem; font-weight: 800; color: #fff; padding: 6px 0;
}
