/* ── Metanoia Global Artist Network — Main Stylesheet ── */

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes pulse-gold {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.3); opacity: 1; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
  background-color: #050505;
}
body::-webkit-scrollbar { display: none; }

/* ── Globe ───────────────────────────────────────────────────────────────── */
.globe-container { cursor: grab; perspective: 2000px; }
.globe-container:active { cursor: grabbing; }

.globe-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle at center,
    rgba(244,192,37,0.08) 0%,
    rgba(244,192,37,0.03) 40%,
    transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

.hud-line {
  height: 1px;
  background: linear-gradient(to right, rgba(244,192,37,0.4), transparent);
  width: 40px;
  margin-bottom: 8px;
}

#globe-canvas.hovering { cursor: pointer; }

/* ── Zoom buttons ────────────────────────────────────────────────────────── */
#btn-zoom-in,
#btn-zoom-out,
#btn-zoom-reset { cursor: pointer; background: rgba(5,5,5,0.7); }

/* ── Artist Panel ────────────────────────────────────────────────────────── */
#artist-panel {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: 360px;
  background: linear-gradient(160deg, #0e0e0e 0%, #080808 100%);
  border-left: 1px solid rgba(244,192,37,0.12);
  z-index: 100;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
#artist-panel.open {
  transform: translateX(0);
  pointer-events: all;
  animation: panel-in 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

/* ── Cluster Panel ───────────────────────────────────────────────────────── */
#cluster-panel {
  position: fixed; top: 0; right: 0;
  height: 100vh; width: 360px;
  background: linear-gradient(160deg, #0e0e0e 0%, #080808 100%);
  border-left: 1px solid rgba(244,192,37,0.12);
  z-index: 99;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
#cluster-panel.open {
  transform: translateX(0);
  pointer-events: all;
}

/* ── Mobile: panels as bottom sheets ────────────────────────────────────── */
@media (max-width: 767px) {
  #artist-panel,
  #cluster-panel {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; height: 88vh;
    border-left: none;
    border-top: 1px solid rgba(244,192,37,0.18);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
  #artist-panel.open,
  #cluster-panel.open {
    transform: translateY(0);
    animation: sheet-in 0.42s cubic-bezier(0.22,1,0.36,1) both;
  }
  @keyframes sheet-in {
    from { opacity: 0.6; transform: translateY(100%); }
    to   { opacity: 1;   transform: translateY(0); }
  }
  /* Drag handle indicator */
  #artist-panel::before,
  #cluster-panel::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: rgba(244,192,37,0.25);
    border-radius: 2px;
    margin: 10px auto 0;
    flex-shrink: 0;
  }
}

/* ── Mobile nav overlay ──────────────────────────────────────────────────── */
/* Menu open/close handled via inline style in main.js */
.menu-link:hover span { color: rgba(244,192,37,0.6); }
.menu-link:hover { color: rgba(244,192,37,0.9); }

/* ── Panel shared components ─────────────────────────────────────────────── */
.panel-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244,192,37,0.35);
  background: #1a1a1a;
  flex-shrink: 0;
}
.genre-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(244,192,37,0.3);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(244,192,37,0.75);
  text-transform: uppercase;
  margin-right: 4px;
  margin-bottom: 4px;
}
.stat-block {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}

/* ── Track items (panel sessions list) ───────────────────────────────────── */
.track-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 4px; cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}
.track-item:hover {
  background: rgba(244,192,37,0.05);
  border-color: rgba(244,192,37,0.15);
}
.track-artwork {
  width: 36px; height: 36px;
  border-radius: 3px; object-fit: cover;
  flex-shrink: 0; background: #1a1a1a;
}
.track-info   { min-width: 0; flex: 1; }
.track-title  {
  font-size: 11px; color: rgba(255,255,255,0.75);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}
.track-meta   {
  font-size: 9px; color: rgba(255,255,255,0.25);
  letter-spacing: .12em; text-transform: uppercase; margin-top: 2px;
}
.track-plays  {
  font-size: 9px; color: rgba(244,192,37,0.5);
  flex-shrink: 0; letter-spacing: .1em;
}

/* ── Artists grid page ───────────────────────────────────────────────────── */
.artist-card {
  background: linear-gradient(160deg, #0e0e0e, #080808);
  border: 1px solid rgba(244,192,37,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  animation: fade-in 0.4s ease both;
}
.artist-card:hover {
  border-color: rgba(244,192,37,0.35);
  transform: translateY(-3px);
}
.artist-card-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; background: #111;
  display: block;
}
.artist-card-body { padding: 14px 16px; }
.artist-card-name {
  font-size: 13px; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.artist-card-meta {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 3px;
}
.artist-card-genres {
  margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px;
}
.card-genre-tag {
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase;
  padding: 1px 7px;
  border: 1px solid rgba(244,192,37,0.2);
  border-radius: 999px;
  color: rgba(244,192,37,0.6);
}
.founder-badge {
  display: inline-block;
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  padding: 1px 8px;
  background: rgba(255,115,30,0.12);
  border: 1px solid rgba(255,115,30,0.4);
  border-radius: 999px;
  color: rgba(255,115,30,0.9);
  margin-bottom: 6px;
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.filter-btn {
  padding: 5px 14px;
  border: 1px solid rgba(244,192,37,0.2);
  border-radius: 999px;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,192,37,0.5); cursor: pointer;
  background: transparent;
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(244,192,37,0.1);
  border-color: rgba(244,192,37,0.6);
  color: rgba(244,192,37,0.9);
}

/* ── Artist detail page ──────────────────────────────────────────────────── */
.detail-section-label {
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(244,192,37,0.5); margin-bottom: 14px;
}
.detail-track-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.15s;
  border-radius: 3px;
  padding-left: 8px; padding-right: 8px;
}
.detail-track-row:hover { background: rgba(244,192,37,0.04); }
.detail-track-num {
  font-size: 10px; color: rgba(255,255,255,0.2);
  width: 20px; text-align: right; flex-shrink: 0;
}
.detail-track-art {
  width: 44px; height: 44px;
  border-radius: 3px; object-fit: cover;
  background: #1a1a1a; flex-shrink: 0;
}
.detail-track-title {
  font-size: 12px; color: rgba(255,255,255,0.8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.detail-track-date {
  font-size: 9px; color: rgba(255,255,255,0.25);
  letter-spacing: .1em; text-transform: uppercase; margin-top: 2px;
}
.detail-track-plays {
  margin-left: auto; flex-shrink: 0;
  font-size: 9px; color: rgba(244,192,37,0.5); letter-spacing: .1em;
}

/* ── Us / About page ─────────────────────────────────────────────────────── */
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f4c025;
  box-shadow: 0 0 10px rgba(244,192,37,0.6);
  flex-shrink: 0;
  margin-top: 4px;
}
.timeline-line {
  width: 1px;
  background: linear-gradient(to bottom, rgba(244,192,37,0.3), transparent);
  flex-shrink: 0;
}
