/* Holistic Vibrations - Shared Design System */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

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

:root {
  --gold: #C8A24E;
  --gold-light: #E8D5A0;
  --deep: #0A0A0F;
  --surface: #111118;
  --surface-2: #1A1A24;
  --text: #E8E4DD;
  --text-muted: #8A8690;
  --accent: #7B5EBF;
  --danger: #BF5E5E;
  --success: #5EBF7B;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--deep);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 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: 1000;
}

.syne { font-family: 'Syne', sans-serif; }

/* Navigation */
nav {
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(200, 162, 78, 0.08);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
}

.logo:hover { opacity: 0.9; }

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

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

/* Page Header */
.page-header {
  padding: 4rem 3rem 3rem;
  position: relative;
}

.page-header .glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 94, 191, 0.08) 0%, rgba(200, 162, 78, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.page-header .label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-header .label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.page-header h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1rem;
}

.page-header h1 .gold { color: var(--gold); }

.page-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 78, 0.3), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-gold {
  background: var(--gold);
  color: var(--deep);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(200, 162, 78, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(200, 162, 78, 0.05);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(191, 94, 94, 0.15);
  color: var(--danger);
  border: 1px solid rgba(191, 94, 94, 0.3);
}

.btn-danger:hover {
  background: rgba(191, 94, 94, 0.25);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.card:hover {
  border-color: rgba(200, 162, 78, 0.15);
  transform: translateY(-4px);
}

/* Footer */
footer {
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(200, 162, 78, 0.08);
}

footer .logo { font-size: 0.9rem; }

footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Genre tags / pills */
.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.genre-pill.country { background: rgba(200, 162, 78, 0.15); color: var(--gold-light); }
.genre-pill.gospel { background: rgba(123, 94, 191, 0.15); color: #B8A5E0; }
.genre-pill.rb { background: rgba(94, 191, 155, 0.15); color: #A5E0C8; }
.genre-pill.pop { background: rgba(191, 94, 155, 0.15); color: #E0A5C8; }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0 3rem 2rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(200, 162, 78, 0.15);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  border-color: rgba(200, 162, 78, 0.4);
  color: var(--text);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}

/* Song grid */
.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 3rem 4rem;
}

.song-card {
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.song-card:hover::before { opacity: 1; }
.song-card:hover { border-color: rgba(200, 162, 78, 0.15); transform: translateY(-4px); }

.song-cover {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.song-cover .genre-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.song-info {
  padding: 1.5rem;
}

.song-info h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.song-info .artist {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.song-info .description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.song-meta .date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.song-meta .duration {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.streaming-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 162, 78, 0.06);
}

.streaming-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(200, 162, 78, 0.1);
  border-radius: 100px;
  transition: all 0.3s;
}

.streaming-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

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

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1rem;
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(200, 162, 78, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

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

/* Profile page */
.profile-section {
  padding: 3rem;
}

.profile-bio {
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.1);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.platform-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.platform-link .platform-icon {
  font-size: 1.2rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.08);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.stat-card .value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Admin */
.admin-container {
  padding: 2rem 3rem 4rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(200, 162, 78, 0.08);
}

.admin-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(200, 162, 78, 0.08);
  font-weight: 500;
}

.admin-table td {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(200, 162, 78, 0.04);
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(200, 162, 78, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.published { background: rgba(94, 191, 123, 0.15); color: var(--success); }
.status-badge.draft { background: rgba(138, 134, 144, 0.15); color: var(--text-muted); }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid rgba(200, 162, 78, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.3s;
}

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

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

.form-group 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='%238A8690' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.9rem;
  z-index: 200;
  transform: translateY(120%);
  transition: transform 0.3s ease;
  max-width: 350px;
}

.toast.show { transform: translateY(0); }
.toast.success { border-color: rgba(94, 191, 123, 0.4); }
.toast.error { border-color: rgba(191, 94, 94, 0.4); }

/* Admin login */
.login-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.login-box {
  background: var(--surface);
  border: 1px solid rgba(200, 162, 78, 0.1);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gold-light);
}

.login-box .hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.login-box .form-group {
  text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.75rem; }
  .page-header { padding: 3rem 1.5rem 2rem; }
  .filter-bar { padding: 0 1.5rem 1.5rem; }
  .song-grid { padding: 0 1.5rem 3rem; grid-template-columns: 1fr 1fr; }
  .profile-section { padding: 2rem 1.5rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .admin-container { padding: 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  .song-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .nav-links { gap: 0.75rem; }
}
