/* VoidVoice — Design System */
/* Brand: voidmind · Dark, flat, no gradients on surfaces */

:root {
  --bg-primary: #0A0A0A;
  --bg-surface: #141414;
  --bg-elevated: #1E1E1E;
  --bg-input: #1a1a1a;
  --text-primary: #E8E4D9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #6366f1;
  --accent-hover: #8b5cf6;
  --accent-dim: rgba(99, 102, 241, 0.15);
  --border: #2a2a2a;
  --border-focus: #6366f1;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 3px;
  --transition: 150ms ease;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-void { color: var(--text-secondary); }
.brand-voice { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text-primary); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.inline { display: inline; }

/* Main */
.main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.footer-sep {
  color: var(--text-muted);
  margin: 0 8px;
  font-weight: 400;
}

.footer-link {
  color: var(--text-secondary);
  font-weight: 400;
}

.footer-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.btn:hover {
  border-color: var(--text-secondary);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

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

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

.btn-sm {
  padding: 5px 14px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 14px;
}

.btn-text {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.btn-danger { border-color: var(--error); color: var(--error); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.1); color: var(--error); }

a.btn:hover { text-decoration: none; }
a.btn.btn-primary:hover { color: #fff; }
a.btn:not(.btn-primary):not(.btn-danger):hover { color: var(--text-primary); }
a.btn.btn-danger:hover { color: var(--error); }

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.card:hover { border-color: #3a3a3a; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Artist Card */
.artist-card {
  display: flex;
  gap: 16px;
  padding: 20px;
}

.artist-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  flex-shrink: 0;
  object-fit: cover;
}

.artist-card .info { flex: 1; min-width: 0; }

.artist-card .name {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.artist-card .tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-card .meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.artist-card .rate {
  color: var(--accent);
  font-weight: 500;
}

.artist-card .rating { color: var(--warning); }

/* Tags */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.tag-active { background: var(--accent); color: #fff; }
.tag-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* Section */
.section-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.section-heading {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 64px;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title .highlight { color: var(--accent); }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

/* Search */
.search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.search-input::placeholder { color: var(--text-muted); }

/* Filters */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* Audio Player */
.player {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background var(--transition);
}

.player-btn:hover { background: var(--accent-hover); }

.player-waveform {
  flex: 1;
  height: 48px;
  cursor: pointer;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}

/* Waveform canvas */
.waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Recorder */
.recorder {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.recorder-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.recorder-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--error);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
}

.recorder-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--error);
  border-radius: 50%;
  transition: all var(--transition);
}

.recorder-btn.recording::after {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.recorder-btn:hover { border-color: #ff6b6b; }

.recorder-level {
  flex: 1;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}

.recorder-level-bar {
  height: 100%;
  background: var(--success);
  transition: width 50ms linear;
  border-radius: 4px;
}

.recorder-time {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.recorder-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Upload */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.upload-zone-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.upload-zone-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.upload-progress {
  margin-top: 16px;
}

.progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 200ms ease;
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-align: center;
}

/* Profile */
.profile-header {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-info { flex: 1; }

.profile-name {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.profile-tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.profile-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}

.profile-stat {
  font-family: var(--font-mono);
  font-size: 13px;
}

.profile-stat-value {
  font-weight: 700;
  color: var(--accent);
}

.profile-stat-label {
  color: var(--text-muted);
  margin-left: 4px;
}

.profile-bio {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 700px;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-nav-item {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.dashboard-nav-item:hover,
.dashboard-nav-item.active {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* Status badges */
.status {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.status-accepted { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-in_progress { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.status-completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-declined { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.status-cancelled { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); }

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.font-mono { font-family: var(--font-mono); }
.hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; gap: 16px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-meta { flex-direction: column; gap: 8px; }
  .nav-inner { padding: 0 16px; }
  .main { padding: 24px 16px; }
}
