/* ==========================================================================
   Music In Tune Publishing - style.css
   Multi-page, mobile-first responsive, light theme
   ========================================================================== */

/* ---------- Geist Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-card: rgba(255, 255, 255, 0.45);
  --bg-player: rgba(255, 255, 255, 0.5);
  --text-primary: #1a1a1a;
  --text-secondary: #3a3a3a;
  --accent: #1a6b9a;
  --accent-hover: #0e4f74;
  --accent-subtle: rgba(26, 107, 154, 0.08);
  --border: rgba(0, 0, 0, 0.12);
  --font-stack: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nav-height: 56px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: url('assets/images/background_home.png') center top / 100% auto no-repeat fixed;
  background-color: #7cc3eb;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navbar ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: #96c3e1;
  z-index: 200;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 22px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 24px;
}

.nav-links a {
  color: #000;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
}

/* Mobile hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: #96c3e1;
  padding: 12px 24px 20px;
  gap: 12px;
  z-index: 200;
}

.nav-links.open a {
  font-size: 0.95rem;
  padding: 6px 0;
}

/* ---------- Hero (index.html only) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 20px 60px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 960px;
  gap: 24px;
}

.hero-logo {
  height: 48px;
  width: auto;
}

.hero-tagline {
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero-artist {
  color: #000;
  font-size: 1.1rem;
  margin-top: -12px;
}

.hero-artist strong {
  color: #000;
  font-weight: 600;
}

.hero-album {
  margin: 8px 0;
}

.hero-album-cover {
  width: 180px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-album-cover:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.hero-streaming {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-stream-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.hero-stream-link img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.hero-stream-link:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
}

.home-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.home-link {
  display: inline-block;
  padding: 8px 20px;
  color: #000;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.home-link:hover {
  color: #000;
  opacity: 0.6;
}

/* ---------- Page Layout (non-home pages) ---------- */
.page {
  padding: calc(var(--nav-height) + 40px) 0 64px;
  min-height: calc(100vh - 80px);
}

.page-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- About (artist.html) ---------- */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 8px;
  margin: 0 auto;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ---------- Album Card (discography.html) ---------- */
.album-card {
  margin-bottom: 48px;
}

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

.album-card-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  align-items: center;
}

.album-cover img {
  width: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.album-info {
  flex: 1;
}

.album-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.album-artist {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.album-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.album-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ---------- Streaming Links ---------- */
.stream-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stream-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.stream-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.stream-link:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ---------- Audio Player ---------- */
.player {
  background: var(--bg-player);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.player-display {
  margin-bottom: 16px;
}

.player-now-playing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.player-track-num {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.player-track-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.player-track-type {
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.player-time {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.player-progress {
  flex: 1;
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-progress-filled {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0;
  transition: width 0.1s linear;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.player-btn:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.player-btn-play {
  background: var(--accent);
  color: #fff;
  width: 48px;
  height: 48px;
}

.player-btn-play:hover {
  background: var(--accent-hover);
  color: #fff;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* ---------- Track Listing ---------- */
.tracklist {
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.track:last-child {
  border-bottom: none;
}

.track:hover {
  background: var(--accent-subtle);
}

.track.active {
  background: var(--accent-subtle);
}

.track.active .track-name {
  color: var(--accent);
}

.track.playing .track-number::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 4px;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.track-number {
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 28px;
  text-align: center;
  font-weight: 600;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-name {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.track-type {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ---------- Album Credits ---------- */
.album-credits {
  padding: 24px;
  background: var(--bg-card);
  border-radius: 8px;
}

.album-credits h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.album-credits p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

/* ---------- Shop ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 280px;
}

.shop-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.shop-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-item-image {
  background: #f5f5f5;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-image img {
  width: 100%;
  max-width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.shop-item-details {
  padding: 16px 20px 20px;
}

.shop-item-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.shop-item-artist {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.shop-item-format {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.shop-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.shop-item-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s;
}

.shop-item:hover .shop-item-btn {
  background: var(--accent-hover);
}

/* ---------- YouTube Channel ---------- */
.youtube-channel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  max-width: 600px;
}

.youtube-channel-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.youtube-icon {
  flex-shrink: 0;
}

.youtube-channel-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.youtube-channel-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.youtube-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #FF0000;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}

.youtube-subscribe-btn:hover {
  background: #cc0000;
  color: #fff;
  transform: translateY(-1px);
}

.youtube-subscribe-btn svg {
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  max-width: 480px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.contact-info p:last-child {
  margin-bottom: 0;
}

.contact-info strong {
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (768px+) */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-logo {
    height: 26px;
  }

  .hero-logo {
    height: 56px;
  }

  .hero-album-cover {
    width: 220px;
  }

  .page-title {
    font-size: 2rem;
  }

  .about-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-image {
    flex-shrink: 0;
  }

  .about-image img {
    width: 260px;
  }

  .album-card-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .album-cover img {
    width: 240px;
  }

  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  }

  .youtube-channel-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
  }

  .hero-logo {
    height: 64px;
  }

  .hero-album-cover {
    width: 240px;
  }

  .page {
    padding-top: calc(var(--nav-height) + 56px);
    padding-bottom: 80px;
  }

  .about-image img {
    width: 300px;
  }

}
