/* General Body Styles */
body {
  background-color: #1a202c;
  /* Dark Navy Blue */
  color: #edf2f7;
  /* Light Gray/Off-white */
  font-family: 'Roboto Mono', monospace;
  margin: 0;
  padding: 0;
  line-height: 1.6;

  /* --- ADD THESE LINES --- */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* Header */
.site-header {
  background-color: #202738;
  /* Slightly lighter than body (#1a202c) */
  border-bottom: 2px solid #2d3748;
  /* Existing separator tone */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  /* stays visible on scroll */
  top: 0;
  z-index: 1000;
}

/* Optional: constrain inner content if you wrap with .container */
.site-header .container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo area */
.logo-placeholder img {
  height: 80px;
  /* Adjust this value to get the exact size you want */
  width: auto;
  /* Maintains the correct aspect ratio */
  display: block;
  /* Fixes potential alignment issues */
}


/* Nav */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin-left: 2rem;
}

nav a {
  color: #edf2f7;
  text-decoration: none;
  font-size: 1rem;
  text-transform: lowercase;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
}


/* Main Content Section */
main {
  padding: 1rem;
  max-width: 800px;
  margin: 3rem auto;

  /* --- ADD THIS LINE --- */
  flex: 1 0 auto;
  /* This makes the main content grow to fill space */
}


h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
}

/* Footer */
.site-footer {
  background-color: #2d3748;
  /* Muted dark gray */
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.privacy-notice {
  font-size: 0.8rem;
  text-transform: uppercase;
  margin: 0;
  color: rgba(255, 255, 255, 0.293);
}

.footer-nav {
  margin: 1rem 0;
}

.footer-nav ul {
  justify-content: center;
}

.footer-nav li {
  margin: 0 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: #a0aec0;
  /* Lighter gray for less emphasis */
  margin: 0;
}

.logo-placeholder img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Base link style */
a {
  color: #FF8C00;
  /* A strong, dark orange */
  text-decoration: none;
  /* Removes the default underline */
  transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
  /* Smooth transition for hover effects */
}

/* Hover and focus style for interaction */
a:hover,
a:focus {
  color: #FFA500;
  /* A slightly brighter orange on hover */
  text-decoration: underline;
  /* Adds underline on hover for clarity */
}

/* Visited link style */
a:visited {
  color: #D2691E;
  /* A slightly muted, 'chocolate' orange for visited links */
}

/* --- Responsive Styles for Mobile --- */
@media (max-width: 600px) {

  /* 1. Make header items stack vertically */
  .site-header {
    flex-direction: column;
    /* Stack logo and nav */
    padding: 1rem;
  }

  .logo-placeholder {
    margin-bottom: 1rem;
    /* Add space between logo and nav */
  }

  nav ul {
    justify-content: center;
    /* Center nav items */
    padding: 0;
  }

  nav li {
    margin: 0 0.75rem;
    /* Adjust spacing for nav items */
  }

  /* 2. Reduce space below the header */
  main {
    margin-top: 2rem;
    /* Reduce top margin from 4rem to 2rem */
    padding: 1.5rem 1rem;
    /* Adjust padding for smaller screens */
  }

  /* 3. Adjust body height for a more natural mobile layout */
  body {
    min-height: auto;
    /* Allow body height to be determined by content */
  }

  h1 {
    font-size: 2.5rem;
    /* Slightly smaller H1 for mobile */
  }
}

/* --- Style for the currently active navigation link --- */
nav a.active,
.footer-nav a.active {
  color: #FFA500;
  /* A bright, standout orange */
  font-weight: bold;
  text-decoration: underline;
}

/* --- Artist Page Styles --- */

.artist-block {
  margin-bottom: 4rem;
  /* Adds space between artist sections */
}

.artist-block h2 {
  border-bottom: 2px solid #2d3748;
  /* Adds a separator line */
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.artist-photo {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* Slightly rounded corners for the images */
  margin-bottom: 1.5rem;
}

.artist-socials {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  /* Space between the icons */
}

.artist-socials a {
  display: inline-block;
}

.artist-socials img {
  width: 24px;
  /* Sets a uniform size for all icons */
  height: 24px;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.artist-socials a:hover img,
.artist-socials a:focus img {
  opacity: 1;
  /* Makes icons fully white on hover */
}

h1 {
  margin-top: 0.5rem;
}

.artist-feature {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.rounded-rect {
  background-color: #2d3748;
  /* matching footer background */
  border-radius: 16px;
  padding: 1rem;
  width: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Existing styles for artist photo */
.artist-photo-wrapper {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 16px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Larger track cover */
.track-cover .cover-image {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin: 0 auto;
}

.artist-name {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: #edf2f7;
}

.track-name {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
  color: #a0aec0;
  margin: 0;
}

.streaming-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.stream-icon {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease-in-out;
}

.stream-icon:hover,
.stream-icon:focus {
  filter: brightness(0) invert(0.8);
}

/* Separator line */
.section-separator {
  margin: 2rem 0;
  border: none;
  height: 1px;
  background: #2d3748;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Content source styles */
.content-source h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  color: #edf2f7;
}

.content-source p {
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
}

.content-source a {
  color: #ffa500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-source a:hover,
.content-source a:focus {
  color: #ffb733;
  text-decoration: underline;
}

/* --- Layout tweaks for the specific pages --- */

/* ============================================
   TRACK PAGE MOBILE-FIRST RESPONSIVE DESIGN
   ============================================ */



/* ============================================
   TRACK PAGE MOBILE-FIRST RESPONSIVE DESIGN
   ============================================ */

/* Viewport settings to prevent zoom on mobile */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Track page body adjustments - prevent overflow */
.track-page {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

.track-page * {
  box-sizing: border-box;
}

/* ==================
   HEADER - MOBILE FIRST
   ================== */
.track-page .site-header {
  background-color: #1a2333;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  box-sizing: border-box;
}

/* Logo - larger size */
.track-page .logo-placeholder {
  height: 50px;
  width: 50px;
  flex-shrink: 0;
}

.track-page .logo-placeholder img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* Hamburger menu - same size as logo */
.track-page .hamburger {
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  flex-shrink: 0;
}

.track-page .hamburger div {
  width: 100%;
  height: 2px;
  background-color: rgba(237, 242, 247, 0.7);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.track-page .hamburger:hover div,
.track-page .hamburger:focus div {
  background-color: #edf2f7;
}

/* Navigation menu - dropdown */
.track-page nav {
  position: absolute;
  top: 100%;
  right: 1rem;
  margin-top: 0.5rem;
  background-color: #202b44;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 1100;
}

.track-page nav.active {
  display: flex;
}

.track-page nav ul {
  flex-direction: column;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}

.track-page nav li {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.track-page nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: #edf2f7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.track-page nav a:hover,
.track-page nav a:focus {
  background-color: rgba(255, 165, 0, 0.1);
  color: #ffa500;
}

/* ==================
   MAIN CONTENT - CENTERED & NO OVERFLOW
   ================== */
.track-page main {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

.track-page .content-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.track-page .artist-feature {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Section headings */
.track-page h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(237, 242, 247, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.75rem 0;
  width: 100%;
  box-sizing: border-box;
}

.track-page h3:first-child {
  margin-top: 0;
}

/* ==================
   SONG SECTION
   ================== */
.track-page .song-card {
  background-color: #2d3748;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.track-page .cover-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.track-page .song-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-sizing: border-box;
}

.track-page .artist-track {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  color: #edf2f7;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.track-page .streaming-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  background: none;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.track-page .stream-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.track-page .stream-icon:hover,
.track-page .stream-icon:focus {
  opacity: 1;
  transform: scale(1.1);
}

/* ==================
   ARTIST SECTION
   ================== */
.track-page .artist-block {
  background-color: #2d3748;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.track-page .artist-info-flex {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.track-page .artist-photo-wrapper-small {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.track-page .artist-photo-small {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-page .artist-name {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.75rem 0;
  color: #edf2f7;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.track-page .artist-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.track-page .social-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.track-page .social-icon:hover,
.track-page .social-icon:focus {
  opacity: 1;
  transform: scale(1.1);
}

/* ==================
   SEPARATOR
   ================== */
.track-page .section-separator {
  margin: 1.5rem 0;
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}

/* ==================
   CONTENT SOURCE
   ================== */
.track-page .content-source {
  width: 100%;
  box-sizing: border-box;
}

.track-page .content-source h3 {
  margin-bottom: 0.5rem;
}

.track-page .content-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

.track-page .globe-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  flex-shrink: 0;
}

.track-page .content-source p {
  margin: 0;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  flex: 1;
  min-width: 0;
}

.track-page .content-source a {
  color: #ffa500;
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.track-page .content-source a:hover,
.track-page .content-source a:focus {
  color: #ffb733;
  text-decoration: underline;
}

/* ==================
   FOOTER
   ================== */
.track-page .site-footer {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

.track-page .site-footer * {
  box-sizing: border-box;
  max-width: 100%;
}

/* ==================
   TABLET BREAKPOINT (min-width: 600px)
   ================== */
@media (min-width: 600px) {
  .track-page main {
    padding: 1.5rem 2rem;
  }

  .track-page .content-section {
    max-width: 600px;
  }

  .track-page .cover-image {
    max-width: 250px;
  }

  .track-page .artist-photo-wrapper-small {
    width: 100px;
    height: 100px;
  }

  .track-page .artist-track {
    font-size: 1.5rem;
  }

  .track-page .artist-name {
    font-size: 1.5rem;
  }

  .track-page h3 {
    font-size: 1.1rem;
  }
}

/* ==================
   DESKTOP BREAKPOINT (min-width: 900px)
   ================== */
@media (min-width: 900px) {
  .track-page main {
    padding: 2rem;
  }

  .track-page .content-section {
    max-width: 700px;
  }

  .track-page .cover-image {
    max-width: 280px;
  }

  .track-page .streaming-links {
    gap: 1.5rem;
  }

  .track-page .stream-icon {
    width: 42px;
    height: 42px;
  }
}
