/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --brand:     #1a1a2e;
    --accent:    #e94560;
    --white:     #ffffff;
    --off-white: #f8f9fa;
    --text:      #212529;
    --muted:     #6c757d;
    --border:    #dee2e6;
    --success:   #28a745;
    --radius:    10px;
    --shadow:    0 2px 12px rgba(0,0,0,.08);
    --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--off-white); line-height: 1.6; min-height: 100vh; }
a    { color: var(--accent); }
a:hover { text-decoration: underline; }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container { max-width: 640px; margin: 0 auto; padding: 0 1rem; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.7rem 1.4rem; border-radius: var(--radius);
    font-weight: 700; font-size: 1rem; cursor: pointer;
    border: 2px solid transparent; transition: all .15s; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #c0392b; border-color: #c0392b; }
.btn-block    { width: 100%; }

/* ─── Alerts ────────────────────────────────────────────────────────────── */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: 0.925rem; }
.alert-error   { background: #fde8e8; color: #7b1818; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ─── Header ────────────────────────────────────────────────────────────── */
.req-header {
    background: var(--brand); color: var(--white); padding: 1rem 0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.req-header-inner { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.req-logo { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--white); }
.event-name  { font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.9); text-align: center; }
.event-venue { font-size: 0.82rem; color: rgba(255,255,255,.6); }

/* ─── Main ──────────────────────────────────────────────────────────────── */
.req-main { padding: 1.5rem 0 4rem; }

/* ─── Request Form ──────────────────────────────────────────────────────── */
.req-form-section, .req-list-section {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.req-form-section h2, .req-list-section h2 {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem;
}
.req-count { color: var(--muted); font-weight: 400; font-size: 1rem; }

.form-group  { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }
.form-control {
    display: block; width: 100%;
    padding: 0.65rem 0.875rem; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: 1rem;
    background: var(--white); color: var(--text); outline: none;
    transition: border-color .15s;
    -webkit-appearance: none;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 64px; }
.required     { color: var(--accent); }
.req-optional { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.char-count   { text-align: right; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

/* ─── Request List ──────────────────────────────────────────────────────── */
.req-list  { display: flex; flex-direction: column; gap: 0.75rem; }
.req-item  {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem; padding: 0.875rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--off-white);
    transition: background .2s;
}
.req-item:hover { background: var(--white); }
.req-item-main { flex: 1; min-width: 0; }
.req-song    { display: block; font-weight: 700; font-size: 0.975rem; margin-bottom: 0.15rem; }
.req-artist  { color: var(--muted); font-size: 0.85rem; }
.req-who     { color: var(--muted); font-size: 0.82rem; }
.req-message { color: var(--muted); font-size: 0.85rem; font-style: italic; margin-top: 0.3rem; word-break: break-word; }

/* ─── Vote Button ───────────────────────────────────────────────────────── */
.vote-btn {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.15rem; padding: 0.5rem 0.75rem;
    background: var(--white); border: 1.5px solid var(--border);
    border-radius: var(--radius); cursor: pointer; font-size: 1.1rem;
    min-width: 56px; transition: all .15s;
    flex-shrink: 0;
}
.vote-btn:hover   { background: #fff0f0; border-color: var(--accent); }
.vote-btn.voted   { background: #ffe8e8; border-color: var(--accent); }
.vote-num  { font-size: 0.85rem; font-weight: 700; color: var(--text); }

/* ─── No-event / not-found states ──────────────────────────────────────── */
.no-event-state {
    text-align: center; padding: 4rem 1rem;
}
.no-event-icon { font-size: 3rem; margin-bottom: 1rem; }
.no-event-state h1 { margin-bottom: 0.75rem; }
.no-event-state p  { color: var(--muted); margin-bottom: 1.5rem; max-width: 360px; margin-left: auto; margin-right: auto; }

.closed-notice {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 3rem 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.closed-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.closed-notice h2 { margin-bottom: 0.5rem; }
.closed-notice p  { color: var(--muted); }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.req-footer {
    text-align: center; padding: 1.25rem; font-size: 0.82rem; color: var(--muted);
    border-top: 1px solid var(--border);
}
