/* ====== INDIE GAME DEV - Music Page ====== */

:root {
  --bg: #1a1a2e;
  --bg-light: #16213e;
  --surface: #0f3460;
  --card: #1a1a2e;
  --primary: #e94560;
  --secondary: #0fffaf;
  --accent: #ffc947;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --text: #eaeaea;
  --text-muted: #94a3b8;
  --border: rgba(168, 85, 247, 0.3);
  --glow: rgba(168, 85, 247, 0.4);
  --r: 8px;
  --r-lg: 12px;
  --nav-height: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--bg);
  padding: 12px 24px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  text-decoration: none;
  border-radius: var(--r);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Press Start 2P', monospace;
  line-height: 1.4;
}

/* Navigation */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--purple);
  box-shadow: 0 0 20px var(--glow);
  padding: 0 20px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-navigation a {
  display: inline-block;
  padding: 10px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border: 2px solid transparent;
  border-radius: var(--r);
  transition: all 0.15s ease;
}

.main-navigation a:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.1);
  text-shadow: 0 0 10px var(--glow);
}

/* Special Hire Me link */
.main-navigation a.hire-link {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-color: var(--accent);
  animation: hireGlow 2s ease-in-out infinite;
}

.main-navigation a.hire-link:hover {
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent);
}

@keyframes hireGlow {
  0%, 100% { box-shadow: 0 0 5px var(--accent); }
  50% { box-shadow: 0 0 15px var(--accent), 0 0 25px var(--primary); }
}

/* Page Header */
.page-header {
  padding: calc(var(--nav-height) + 60px) 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--surface);
  position: relative;
}

.page-header::before {
  content: '// MUSIC';
  position: absolute;
  top: calc(var(--nav-height) + 20px);
  left: 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-muted);
  opacity: 0.5;
}

.page-header h1 {
  font-size: clamp(20px, 5vw, 32px);
  margin: 0 0 16px;
  color: var(--purple);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.page-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Content */
.music-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Music Set */
.music-set {
  background: var(--card);
  border: 3px solid var(--surface);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.music-set h2 {
  font-size: 12px;
  color: var(--purple);
  margin: 0 0 8px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.music-set > p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 14px;
}

/* Track List */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track {
  background: var(--surface);
  border-radius: var(--r);
  padding: 16px;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.track:hover {
  border-color: var(--purple);
  box-shadow: 0 0 15px var(--glow);
}

.track-title {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  margin-bottom: 12px;
  color: var(--text);
}

.track audio {
  width: 100%;
  height: 36px;
  border-radius: var(--r);
}

/* Additional Tracks */
.additional-tracks {
  display: none;
}

.additional-tracks.show {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* More Button */
.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  text-transform: uppercase;
  border: 3px solid var(--purple);
  background: transparent;
  color: var(--purple);
  border-radius: var(--r);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--bg-light);
  transition: all 0.1s ease;
  margin-top: 16px;
  width: 100%;
}

.more-btn:hover {
  background: var(--purple);
  color: var(--bg);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--bg-light);
}

@media (max-width: 768px) {
  .main-navigation a {
    padding: 8px 10px;
    font-size: 8px;
  }
}
