/* =========================================================
   SpizzlBeatz — Global Styles
   Plain CSS, no framework. Dark mode only, per client spec.
   Palette: black / grey / white / red (from brand logo).
   ========================================================= */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-hover: #1c1c1c;
  --color-border: #262626;
  --color-fg: #f5f5f5;
  --color-muted: #8a8a8a;
  --color-muted-dark: #5c5c5c;
  --color-accent: #e11d2e;
  --color-accent-hover: #c8172a;
  --color-accent-dim: #3a0d11;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-full: 999px;

  --max-width: 1200px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-accent {
  background-color: var(--color-accent);
  color: #fff;
}
.btn-accent:hover {
  background-color: var(--color-accent-hover);
}

.btn-solid {
  background-color: var(--color-fg);
  color: var(--color-bg);
}
.btn-solid:hover {
  background-color: #fff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-fg);
}
.btn-outline:hover {
  border-color: var(--color-muted-dark);
  background-color: var(--color-surface-hover);
}

.btn:disabled {
  background-color: var(--color-surface-hover) !important;
  color: var(--color-muted) !important;
  cursor: not-allowed;
  border-color: transparent !important;
}

.btn-block {
  width: 100%;
}

.field {
  margin-bottom: 1rem;
}
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-fg);
  margin-bottom: 0.5rem;
}
.field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-fg);
  font-size: 0.95rem;
  transition: border-color 0.15s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--color-accent);
}
.field input::placeholder {
  color: var(--color-muted-dark);
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-dim);
  border: 1px solid rgba(225, 29, 46, 0.3);
  color: var(--color-fg);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none !important; }

.spinner-text {
  text-align: center;
  color: var(--color-muted);
  padding: 4rem 0;
}
