/* =============================================
   QUEEN COURT V5 — Base Design System
   ============================================= */

:root {
  --qc-black: #0a0a0f;
  --qc-dark: #111118;
  --qc-dark2: #1a1a24;
  --qc-dark3: #22222e;
  --qc-gold: #f5c842;
  --qc-gold-light: #fcd96a;
  --qc-gold-dim: rgba(245, 200, 66, 0.15);
  --qc-orange: #f07b2a;
  --qc-white: #ffffff;
  --qc-white-80: rgba(255,255,255,0.8);
  --qc-white-40: rgba(255,255,255,0.4);
  --qc-white-10: rgba(255,255,255,0.06);
  --qc-red: #f04a4a;
  --qc-green: #3ddc84;
  --qc-admin-accent: #a78bfa;
  --qc-admin-glow: rgba(167, 139, 250, 0.2);

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-gold: 0 0 24px rgba(245,200,66,0.3);
  --shadow-admin: 0 0 24px rgba(167,139,250,0.2);

  --nav-h: 60px;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--qc-black);
  color: var(--qc-white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

input {
  font-family: var(--font-body);
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--qc-dark); }
::-webkit-scrollbar-thumb { background: var(--qc-dark3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--qc-gold); }

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 400px;
}

.toast {
  background: var(--qc-dark2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--qc-white-80);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
  width: 100%;
}

.toast.toast-success { border-left: 3px solid var(--qc-green); }
.toast.toast-error { border-left: 3px solid var(--qc-red); }
.toast.toast-info { border-left: 3px solid var(--qc-gold); }
.toast.toast-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(16px); }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--qc-dark2) 25%, var(--qc-dark3) 50%, var(--qc-dark2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--qc-white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
