/* ===== APP STYLES (extends theme.css) ===== */

/* ===== NAV ===== */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
}

.nav-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}

.nav-wave .bar {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: pulse 1.8s ease-in-out infinite;
}

.nav-wave .bar:nth-child(1) { height: 4px; animation-delay: 0s; }
.nav-wave .bar:nth-child(2) { height: 8px; animation-delay: 0.15s; }
.nav-wave .bar:nth-child(3) { height: 14px; animation-delay: 0.3s; }
.nav-wave .bar:nth-child(4) { height: 8px; animation-delay: 0.45s; }
.nav-wave .bar:nth-child(5) { height: 4px; animation-delay: 0.6s; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-link--active { color: var(--fg); background: rgba(255,255,255,0.06); }

/* ===== PAGE LAYOUT ===== */
.page-main {
  min-height: 100vh;
  padding-top: 56px;
}

.page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.page-inner--wide {
  max-width: 1080px;
}

/* ===== TYPOGRAPHY HELPERS ===== */
.form-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.form-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.form-header {
  margin-bottom: 3rem;
}

/* ===== FORM ===== */
.form-error {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  color: #ff7070;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.submission-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
}

.required { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a8886' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field select option { background: #1a1a20; color: var(--fg); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(138,136,134,0.5); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(200, 255, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.06);
}

.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.input-prefix-wrap {
  position: relative;
}

.input-prefix {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-prefix-wrap input {
  padding-left: 1.75rem;
}

/* File drop zone */
.file-drop-zone {
  border: 1px dashed rgba(200, 255, 0, 0.2);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.file-drop-zone svg { color: var(--accent); opacity: 0.6; }
.file-drop-zone:hover { border-color: rgba(200, 255, 0, 0.4); background: var(--accent-dim); }
.file-drop-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.file-drop-zone.has-file { border-color: rgba(200, 255, 0, 0.4); color: var(--accent); }

/* Submit button */
.form-submit {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.submit-note {
  color: var(--fg-muted);
  font-size: 0.825rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #0a0a0c;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.btn-primary.btn-large {
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn-secondary:hover { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }

.accent-link { color: var(--accent); text-decoration: none; }
.accent-link:hover { text-decoration: underline; }

/* ===== SUCCESS STATE ===== */
.success-state {
  text-align: center;
  padding: 4rem 0;
}

.success-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2rem;
  height: 40px;
}

.success-wave .bar {
  width: 2px;
  background: var(--accent);
  border-radius: 1px;
  animation: pulse 1.8s ease-in-out infinite;
}

.success-wave .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.success-wave .bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.success-wave .bar:nth-child(3) { height: 28px; animation-delay: 0.2s; }
.success-wave .bar:nth-child(4) { height: 40px; animation-delay: 0.3s; }
.success-wave .bar:nth-child(5) { height: 40px; animation-delay: 0.4s; }
.success-wave .bar:nth-child(6) { height: 28px; animation-delay: 0.5s; }
.success-wave .bar:nth-child(7) { height: 16px; animation-delay: 0.6s; }
.success-wave .bar:nth-child(8) { height: 8px; animation-delay: 0.7s; }

.success-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== DASHBOARD ===== */
.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: right;
}

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.sort-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}

.sort-tab {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.sort-tab:hover { color: var(--fg); }
.sort-tab--active { background: rgba(255,255,255,0.08); color: var(--fg); }

/* Artist grid */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.artist-card {
  background: var(--bg-elevated);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
  position: relative;
}

.artist-card:hover { background: #15151b; }

.artist-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.artist-rank {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* Score badge */
.score-badge {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.score-badge--high { background: rgba(200,255,0,0.12); color: var(--accent); }
.score-badge--mid { background: rgba(255,200,0,0.1); color: #ffc800; }
.score-badge--low { background: rgba(255,100,100,0.08); color: #ff7070; }
.score-badge--pending { background: rgba(255,255,255,0.05); color: var(--fg-muted); }

.score-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.scoring-pulse {
  animation: dot-pulse 1.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.artist-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-genre {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

/* Score bars (mini) */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.score-bar-item {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  align-items: center;
  gap: 0.5rem;
}

.score-bar-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

.score-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.score-bar-val {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: right;
}

.artist-summary {
  font-size: 0.825rem;
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.link-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.link-badge--demo {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(200,255,0,0.2);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--fg-muted);
}

.empty-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 1.5rem;
  height: 30px;
  opacity: 0.3;
}

.empty-wave .bar {
  width: 2px;
  background: var(--fg-muted);
  border-radius: 1px;
}

.empty-wave .bar:nth-child(1) { height: 6px; }
.empty-wave .bar:nth-child(2) { height: 12px; }
.empty-wave .bar:nth-child(3) { height: 20px; }
.empty-wave .bar:nth-child(4) { height: 28px; }
.empty-wave .bar:nth-child(5) { height: 20px; }

.empty-state p { margin-bottom: 1rem; }

/* ===== DETAIL PAGE ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.15s;
}

.back-link:hover { color: var(--fg); }

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.detail-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  border-radius: 12px;
  min-width: 90px;
}

.detail-score-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.detail-score-label {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

.detail-breakdown, .detail-assessment, .detail-info {
  margin-bottom: 3rem;
}

.breakdown-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.breakdown-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.breakdown-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.breakdown-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.breakdown-val {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.breakdown-max {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 400;
  margin-left: 2px;
}

.assessment-text {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.info-block {
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.info-text {
  color: var(--fg-muted);
  line-height: 1.75;
  margin-top: 1rem;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.platform-link:hover { border-color: rgba(200,255,0,0.3); background: var(--accent-dim); }
.platform-link--text { cursor: default; }
.platform-icon { color: var(--accent); font-size: 0.9em; }

.demo-player {
  margin-top: 1rem;
}

.fg-muted { color: var(--fg-muted); }

/* ===== LANDING PAGE NAV ADDITION ===== */
/* Nav bar on landing page (not scrolled) */
.landing-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-inner { padding: 3rem 1.5rem 4rem; }
  .field-row { grid-template-columns: 1fr; }
  .dash-header { align-items: flex-start; }
  .dash-stats { gap: 1.5rem; }
  .breakdown-item { grid-template-columns: 120px 1fr 50px; }
  .form-submit { flex-direction: column; align-items: flex-start; }
  .artist-grid { grid-template-columns: 1fr; }
  .score-bar-item { grid-template-columns: 70px 1fr 24px; }
}

@media (max-width: 480px) {
  .app-nav { padding: 0 1rem; }
  .nav-link { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
  .detail-score { padding: 1rem 1.25rem; }
  .detail-score-num { font-size: 2rem; }
}
