/* ============================================================
   style.css  —  FightCumClub
   ============================================================ */

:root {
  --bg:       #0d0d0d;
  --surface:  #161616;
  --surface2: #1e1e1e;
  --surface3: #252525;
  --border:   #2a2a2a;
  --border2:  #333;
  --text:     #f0f0f0;
  --muted:    #888;
  --muted2:   #555;
  --red:      #e63946;
  --accent:   #c8ff00;
  --purple:   #9b59b6;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Inter', sans-serif; min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,13,13,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 56px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 24px; gap: 16px;
}
.nav-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  letter-spacing: 4px; display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nav-tabs { display: flex; gap: 4px; }
.nav-tab {
  padding: 6px 16px; font-size: 12px; letter-spacing: 1px; font-weight: 500;
  color: var(--muted); border-radius: 20px; transition: all 0.2s;
}
.nav-tab:hover { color: var(--text); background: var(--surface2); }
.nav-tab.active { color: var(--text); background: var(--surface2); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.btn-nav-login, .btn-nav-logout {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 8px; transition: all 0.2s;
}
.btn-nav-login  { background: var(--red); color: #fff; }
.btn-nav-login:hover { background: #c0303b; }
.btn-nav-logout { border: 1px solid var(--border2); color: var(--muted); }
.btn-nav-logout:hover { color: var(--text); border-color: var(--muted); }

/* ── Role badges ───────────────────────────────────────────── */
.role-badge {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: var(--surface3); border: 1px solid var(--border2); color: var(--muted);
}
.role-badge.role-admin     { background: rgba(230,57,70,0.15); border-color: var(--red); color: var(--red); }
.role-badge.role-moderator { background: rgba(200,255,0,0.08); border-color: var(--accent); color: var(--accent); }
.role-badge.role-artist    { background: rgba(155,89,182,0.15); border-color: var(--purple); color: var(--purple); }

/* ── Flash messages ────────────────────────────────────────── */
.flash {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 300;
  padding: 12px 24px 12px 20px; border-radius: 10px;
  font-size: 13px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  background: var(--surface2); border: 1px solid var(--border2);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { opacity:0; transform:translateX(-50%) translateY(-10px); } }
.flash-success { border-color: var(--accent); }
.flash-error   { border-color: var(--red); }
.flash-close   { background:none; border:none; color:var(--muted); cursor:pointer; font-size:14px; }

/* ── Page wrapper ──────────────────────────────────────────── */
.page-wrap {
  padding-top: 80px; max-width: 900px; margin: 0 auto;
  padding-left: 24px; padding-right: 24px; padding-bottom: 80px;
}
.page-wrap.wide { max-width: 1100px; }
.page-header { margin-bottom: 40px; }
.page-header h1 {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; letter-spacing: 4px;
}
.page-header p { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 11px 28px; border-radius: 8px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  font-family: 'Inter', sans-serif; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c0303b; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--muted); border: 1px solid var(--border2); }
.btn-outline:hover { color: var(--text); border-color: var(--muted); }
.btn-accent { background: var(--accent); color: #0d0d0d; }
.btn-accent:hover { filter: brightness(0.9); }
.btn-sm { padding: 7px 18px; font-size: 11px; }

/* ── Forms ─────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.form-input, .form-textarea, .form-select {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 13px;
  outline: none; transition: border-color 0.2s; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--red); }
.form-textarea { min-height: 90px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--muted2); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ── Auth pages ────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--bg);
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px; width: 100%; max-width: 440px;
}
.auth-logo {
  font-family: 'Bebas Neue', sans-serif; font-size: 28px; letter-spacing: 6px;
  text-align: center; margin-bottom: 8px;
}
.auth-logo .red { color: var(--red); }
.auth-sub { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 32px; letter-spacing: 1px; }
.auth-alt { text-align: center; font-size: 12px; color: var(--muted); margin-top: 20px; }
.auth-alt a { color: var(--red); }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  color: var(--muted2); font-size: 11px;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }

/* ── Home hero ─────────────────────────────────────────────── */
.home-hero {
  padding-top: 56px; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; text-align: center; padding-left: 24px; padding-right: 24px;
  overflow: hidden;
}
.home-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(230,57,70,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(155,89,182,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 20% 70%, rgba(200,255,0,0.03) 0%, transparent 60%);
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border2);
  padding: 6px 16px; border-radius: 20px;
  font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; margin-bottom: 32px;
}
.hero-pill .dot { color: var(--red); }
.hero-name {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(72px, 14vw, 160px); line-height: 0.88;
}
.hero-name .filled { display: block; color: var(--text); }
.hero-name .outline { display: block; -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.hero-name .red2 { color: var(--red); -webkit-text-stroke: 0; }
.hero-sub { font-size: 13px; color: var(--muted); margin-top: 24px; max-width: 380px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--border); flex-wrap: wrap; justify-content: center;
}
.stat { text-align: center; }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 40px; letter-spacing: 2px; line-height: 1; }
.stat-num .red { color: var(--red); }
.stat-label { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-top: 4px; }

/* ── Upcoming strip ────────────────────────────────────────── */
.upcoming-strip {
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 24px; display: flex; align-items: center; gap: 20px; overflow-x: auto;
}
.strip-label { font-size: 10px; letter-spacing: 3px; color: var(--red); text-transform: uppercase; white-space: nowrap; flex-shrink: 0; }
.strip-event {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 18px;
  display: flex; align-items: center; gap: 14px; white-space: nowrap; flex-shrink: 0; transition: border-color 0.2s;
}
.strip-event:hover { border-color: var(--red); }
.strip-event-date { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--red); line-height: 1; }
.strip-event-name { font-size: 12px; font-weight: 600; }
.strip-event-time { font-size: 11px; color: var(--muted); }

/* ── Events list ───────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 3px; }
.event-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; display: grid; grid-template-columns: 64px 1fr auto;
  gap: 20px; align-items: center; transition: all 0.2s; position: relative; overflow: hidden;
}
.event-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform: scaleY(0); transition: transform 0.2s; border-radius: 0 2px 2px 0;
}
.event-card:hover { background: var(--surface2); border-color: var(--border2); }
.event-card:hover::after { transform: scaleY(1); }
.event-card.tonight::after { transform: scaleY(1); background: var(--accent); }
.event-card.past { opacity: 0.5; }
.ev-date-col { text-align: center; }
.ev-day { font-family: 'Bebas Neue', sans-serif; font-size: 36px; line-height: 1; }
.ev-mon { font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.ev-badges { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.badge {
  font-size: 9px; letter-spacing: 2px; padding: 2px 9px; border-radius: 20px;
  text-transform: uppercase; font-weight: 700;
}
.badge-upcoming { background: var(--surface3); color: var(--muted); border: 1px solid var(--border2); }
.badge-tonight  { background: var(--red); color: #fff; animation: pulse 1.5s infinite; }
.badge-past     { background: transparent; color: var(--muted2); border: 1px solid var(--border); }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.65} }
.ev-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ev-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; max-width: 440px; }
.ev-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.ev-meta-item { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ev-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ev-time { font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; }
.btn-vrc {
  padding: 7px 18px; border-radius: 6px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; cursor: pointer; border: 1px solid var(--red); color: var(--red); background: transparent;
  white-space: nowrap; transition: all 0.2s;
}
.btn-vrc:hover { background: var(--red); color: #fff; }
.btn-vrc.disabled { border-color: var(--border); color: var(--muted2); cursor: default; pointer-events: none; }

/* ── Artists grid ──────────────────────────────────────────── */
.artists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.artist-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: all 0.25s;
}
.artist-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.artist-banner { height: 100px; position: relative; overflow: hidden; }
.artist-banner-inner { position: absolute; inset: 0; background-size: cover; background-position: center; }
.artist-avatar-row { padding: 0 20px; margin-top: -34px; margin-bottom: 10px; position: relative; z-index: 2; }
.artist-avatar {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--surface);
  background: var(--surface3); display: flex; align-items: center; justify-content: center; font-size: 28px;
  overflow: hidden; flex-shrink: 0; position: relative; z-index: 2;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.artist-body { padding: 0 20px 20px; }
.artist-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.artist-name { font-size: 16px; font-weight: 700; }
.verified { width: 16px; height: 16px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 9px; color: #fff; }
.artist-handle { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.artist-role-badge {
  display: inline-block; font-size: 9px; letter-spacing: 2px; padding: 2px 10px; border-radius: 20px;
  text-transform: uppercase; font-weight: 700; margin-bottom: 12px;
  background: var(--surface3); border: 1px solid var(--border2); color: var(--muted);
}
.artist-role-badge.owner   { background: rgba(230,57,70,0.12);  border-color: var(--red);    color: var(--red); }
.artist-role-badge.dj      { background: rgba(155,89,182,0.12); border-color: var(--purple); color: var(--purple); }
.artist-role-badge.fighter { background: rgba(200,255,0,0.08);  border-color: var(--accent); color: var(--accent); }
.artist-bio { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.artist-links { display: flex; flex-direction: column; gap: 6px; }
.artist-link {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text); font-size: 12px; font-weight: 500; transition: all 0.2s;
}
.artist-link:hover { background: var(--surface3); border-color: var(--border2); }
.artist-link-arr { color: var(--muted2); }

/* ── Admin panel ───────────────────────────────────────────── */
.admin-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding-top: 24px; }
.admin-sidebar {
  padding: 24px 0;
  position: sticky; top: 80px; align-self: start;
}
.admin-sidebar-title { font-size: 10px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; padding: 0 16px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; color: var(--muted); transition: all 0.2s; margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--surface2); color: var(--text); }
.sidebar-link.active { background: var(--surface2); color: var(--text); }
.sidebar-link .icon { font-size: 16px; }
.admin-content { padding: 24px 0; }
.admin-section { margin-bottom: 40px; }
.admin-section-title {
  font-size: 11px; letter-spacing: 3px; color: var(--muted); text-transform: uppercase;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

/* ── Manage table ──────────────────────────────────────────── */
.manage-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.manage-row {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px;
}
.manage-row-main { flex: 1; }
.manage-row-name { font-size: 14px; font-weight: 600; }
.manage-row-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.manage-row-actions { display: flex; gap: 6px; }
.btn-icon {
  background: transparent; border: 1px solid var(--border); color: var(--muted2);
  padding: 5px 12px; border-radius: 6px; font-size: 11px; cursor: pointer; transition: all 0.2s;
}
.btn-icon:hover { border-color: var(--muted); color: var(--text); }
.btn-icon.danger:hover { border-color: var(--red); color: var(--red); }

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted); font-size: 13px;
  border: 1px dashed var(--border); border-radius: 12px;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 32px 40px; display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 6px; color: var(--muted2); }
.footer-copy { font-size: 10px; letter-spacing: 2px; color: var(--muted2); }

/* ── Invite table ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: none; }
.used { color: var(--muted2); }
.copy-btn {
  background: var(--surface3); border: 1px solid var(--border2); color: var(--text);
  padding: 3px 10px; border-radius: 5px; font-size: 10px; cursor: pointer; transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; display: flex; gap: 4px; padding: 16px 0; flex-wrap: wrap; }
  .admin-sidebar-title { display: none; }
  .event-card { grid-template-columns: 52px 1fr; }
  .ev-actions { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .artists-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Helpers ───────────────────────────────────────────────── */
.red { color: var(--red); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.text-muted { color: var(--muted); font-size: 12px; }

/* ── Custom badges ─────────────────────────────────────────── */
.custom-badge {
  display: inline-flex; align-items: center;
  font-size: 9px; letter-spacing: 2px; padding: 2px 10px;
  border-radius: 20px; text-transform: uppercase; font-weight: 700;
}

/* ── Fix admin sidebar for all remaining pages ─────────────── */
.admin-sidebar a { display: flex; }
