/* Galaxy Transmissions - Shared Styles */

:root {
  --bg: #0a0a0f;
  --card: #12121a;
  --card-hover: #1a1a25;
  --border: #2a2a3a;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --purple: #a855f7;
  --pink: #ec4899;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.container.wide {
  max-width: 1200px;
}

/* ==================== SITE NAV ==================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}

.nav-home {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-home:hover {
  color: var(--accent);
}

/* ==================== HERO ==================== */

.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero.large {
  padding: 6rem 2rem 4rem;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 20% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #a5a5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero .date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.hero-link:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

/* ==================== VIDEO ==================== */

.video-section {
  margin-bottom: 3rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-link {
  display: block;
  text-decoration: none;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.7);
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  transition: all 0.2s;
}

.video-link:hover .play-button {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==================== SECTIONS ==================== */

section {
  margin-bottom: 3rem;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

section h2 .icon {
  font-size: 1.5rem;
}

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

/* ==================== CARDS ==================== */

.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.story-card p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.story-card p:last-child {
  margin-bottom: 0;
}

.story-card strong {
  color: var(--accent);
}

.story-card .highlight {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.15));
  border-left: 3px solid var(--purple);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-style: italic;
}

/* ==================== EMOTIONS ==================== */

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

.emotion-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.emotion-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.emotion-card .value {
  font-size: 1.1rem;
  font-weight: 600;
}

.emotion-card.dominant {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
  border-color: var(--purple);
}

.emotion-card.dominant .value {
  color: var(--purple);
}

.emotion-card.secondary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border-color: var(--accent);
}

.emotion-card.secondary .value {
  color: var(--accent);
}

.emotion-card.counter {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
  border-color: var(--pink);
}

.emotion-card.counter .value {
  color: var(--pink);
}

/* Emotion dots for song cards */
.song-emotions {
  display: flex;
  gap: 0.4rem;
}

.emotion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.emotion-dot.dominant { background: var(--purple); }
.emotion-dot.secondary { background: var(--accent); }
.emotion-dot.counter { background: var(--pink); }

/* ==================== METAPHORS ==================== */

.metaphor-list {
  display: grid;
  gap: 1rem;
}

.metaphor-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
}

.metaphor-item strong {
  color: var(--purple);
  display: block;
  margin-bottom: 0.25rem;
}

.metaphor-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==================== APPROACH / SOUND ==================== */

.approach-card {
  background: linear-gradient(135deg, var(--card), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.approach-card .genre {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

.approach-card p {
  color: var(--text-muted);
}

.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.style-tag {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--accent);
}

/* ==================== LYRICS ==================== */

.lyrics-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .lyrics-box {
    padding: 1.5rem 1rem;
    font-size: 1rem;
    line-height: 1.8;
  }
}

.lyrics-box .section-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  display: block;
  margin: 1.5rem 0 0.75rem 0;
}

.lyrics-box .section-tag:first-child {
  margin-top: 0;
}

.lyrics-box .aside {
  color: var(--text-muted);
  font-style: italic;
}

/* ==================== LISTEN LINKS ==================== */

.listen-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.listen-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.listen-link:hover {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.listen-link .icon {
  font-size: 1.25rem;
}

/* ==================== SONG GRID (Index) ==================== */

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.song-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.song-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.song-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.song-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.song-card:hover .song-thumb img {
  transform: scale(1.05);
}

.song-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  transition: all 0.2s;
}

.song-card:hover .play-icon {
  opacity: 1;
}

.song-thumb .duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.song-info {
  padding: 1.25rem;
}

.song-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.song-hook {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

/* ==================== ABOUT SECTION (Index) ==================== */

.about-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-visual {
  background: linear-gradient(135deg, var(--card), rgba(99, 102, 241, 0.1));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ==================== FOOTER ==================== */

footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero, .hero.large {
    padding: 2rem 1rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .emotion-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
