/* ============================================
   TuneVest — Shared Design System
   Gold + Purple on Dark
   ============================================ */

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

:root {
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --gold-dim: rgba(212, 168, 67, 0.15);
  --dark: #0A0A0F;
  --dark-card: #12121A;
  --dark-accent: #1A1A28;
  --dark-input: #16161F;
  --text: #E8E6E1;
  --text-muted: #8A8694;
  --text-dim: #5A5668;
  --purple: #6C5CE7;
  --purple-light: #A29BFE;
  --purple-glow: rgba(108, 92, 231, 0.15);
  --danger: #E74C3C;
  --success: #2ECC71;
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 168, 67, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

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

.nav-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: -0.5px;
}

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

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

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

.nav-link.active {
  color: var(--gold);
  background: var(--gold-dim);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 67, 0.3);
}

/* ============ LAYOUT ============ */
.page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header .label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header h1 .gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

/* ============ FORMS ============ */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 8px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8694' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

.form-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-radio {
  display: none;
}

.form-radio-label {
  padding: 10px 20px;
  background: var(--dark-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.form-radio:checked + .form-radio-label {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.form-radio-label:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--dark);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn-gold:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
  color: white;
}

.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}

/* ============ CARDS ============ */
.card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ============ TAGS / PILLS ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
}

.tag-gold {
  background: var(--gold-dim);
  color: var(--gold);
}

.tag-purple {
  background: var(--purple-glow);
  color: var(--purple-light);
}

.tag-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

/* ============ FILTER BAR ============ */
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 8px 18px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'DM Sans', sans-serif;
}

.filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.filter-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  padding-left: 40px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A8694' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

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

/* ============ GRID ============ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

/* ============ ARTIST CARD ============ */
.artist-card {
  position: relative;
}

.artist-card .artist-genre {
  margin-bottom: 16px;
}

.artist-card .artist-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.artist-card .artist-stage {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-transform: capitalize;
}

.artist-card .artist-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.artist-card .artist-location {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.artist-card .artist-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ============ PROFILE ============ */
.profile-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.profile-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.profile-bio {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 32px;
}

.profile-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.music-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.music-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}

.music-link:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.music-link .platform {
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: capitalize;
  min-width: 100px;
}

.music-link .url {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ INTEREST FORM MODAL ============ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--dark-accent);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--dark-card);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.modal h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.modal .modal-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

/* ============ EDUCATION ============ */
.article-card {
  position: relative;
  overflow: hidden;
}

.article-card .article-tag {
  margin-bottom: 16px;
}

.article-card .article-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.article-card .article-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-card .article-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
}

.article-content {
  padding: 48px 0;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.5px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 720px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
  color: var(--text-muted);
}

.article-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}

/* ============ TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--dark-accent);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  z-index: 2000;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { border-color: rgba(46, 204, 113, 0.4); }
.toast.error { border-color: rgba(231, 76, 60, 0.4); }

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

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

/* ============ FOOTER ============ */
.app-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  margin-top: 64px;
}

.app-footer p {
  font-size: 13px;
  color: var(--text-dim);
}

.app-footer .brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--gold);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.1s; opacity: 0; }
.fade-up-3 { animation-delay: 0.15s; opacity: 0; }
.fade-up-4 { animation-delay: 0.2s; opacity: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { gap: 4px; }
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .page-header { padding: 40px 0 32px; }
  .page-header h1 { font-size: 32px; }

  .filters { gap: 8px; }
  .filter-pill { padding: 6px 14px; font-size: 12px; }

  .profile-name { font-size: 32px; }
  .profile-meta { gap: 10px; }

  .modal { padding: 28px; }

  .card { padding: 20px; }
}

@media (max-width: 480px) {
  .nav-inner { height: 56px; }
  .nav-brand { font-size: 18px; }
  .nav-link { display: none; }
  .nav-links .nav-link:nth-child(-n+2) { display: inline-flex; }
  .nav-cta { display: inline-flex; }

  .form-radio-group { flex-direction: column; }
}

/* ============ LOADING SKELETON ============ */
.skeleton {
  background: linear-gradient(90deg, var(--dark-card) 25%, var(--dark-accent) 50%, var(--dark-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

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

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-lg);
}

/* ============ MUSIC LINK INPUT GROUP ============ */
.link-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: start;
}

.link-group .form-select {
  max-width: 160px;
  flex-shrink: 0;
}

.link-group .form-input {
  flex: 1;
}

.link-remove {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  margin-top: 1px;
}

.link-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(231, 76, 60, 0.1);
}

.add-link-btn {
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
}

.add-link-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}

/* ============ SUCCESS PAGE ============ */
.success-container {
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(46, 204, 113, 0.1);
  border: 2px solid rgba(46, 204, 113, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.success-container h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.success-container p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

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

/* Interest count badge */
.interest-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--purple-light);
  font-weight: 500;
}

.interest-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}
