/* =========================
   GLOBAL STYLES HERE!!!!!
========================= */

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: bisque;
  padding: 25px;
  background-color: rgb(135, 147, 126);
  margin: 10px;
  padding-top: 50px; /* to prevent content from being hidden behind fixed header */
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
  text-align: center;
  color: rgb(138, 255, 87);
  font-family: "Press Start 2P", "Courier New";
}

h2 {
  color: rgb(138, 255, 87);
  font-family: "Press Start 2P", "Courier New";
}

/* =========================
   HEADER
========================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* equal sides, title truly centered */
  align-items: center;
  background-color: rgb(60, 116, 1);
  padding: 15px 25px;
  min-height: 60px;
  box-sizing: border-box;
}

.site-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 16px; /* consistent size */
}

.site-title-link {
    text-decoration: none;
}

.header-logo {
  width: 32px; /* small enough to sit nicely next to the title */
  height: 32px;
  vertical-align: middle; /* aligns with text */
  margin-right: 8px; /* spacing between logo and text */
}

/* =========================
   DROPDOWN MENU
========================= */

details summary {
  font-size: 24px;
  cursor: pointer;
  color: bisque;
  list-style: none;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

.dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  background-color: rgb(60, 116, 1);
  padding: 10px 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  width: 210px;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* all links in dropdown — plain text style, no button look */
.dropdown a,
.dropdown-group > summary {
  display: block;
  padding: 9px 18px;
  color: bisque;
  text-decoration: none;
  font-size: 14px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  list-style: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dropdown a:hover,
.dropdown-group > summary:hover {
  background-color: rgba(132, 255, 0, 0.15);
  color: rgb(132, 255, 0);
}

.dropdown-group > summary::-webkit-details-marker {
  display: none;
}

.menu-container {
  position: relative;
}

/* submenu */

.dropdown-group {
  position: relative;
  color: bisque;
  cursor: pointer;
}

.submenu {
  display: none;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.15);
}

.submenu a {
  padding-left: 30px; /* indent sub-items */
  font-size: 13px;
}

a {
  transition: all 0.3s ease;
}

.dropdown-group[open] .submenu {
  display: flex;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 10px;
  }

  .menu-container {
    position: relative;
  }

  .site-title {
    font-size: 16px;
  }

  .header-logo {
    width: 24px;
    height: 24px;
  }
}

.search-container {
  display: flex;
  justify-content: flex-end; /* pushes search to the right */
  align-items: center;
  position: relative; /* important for dropdown positioning */
}


/* =========================
   SEARCH BAR
========================= */

.search-container input {
  padding: 7px 12px;
  border-radius: 15px;
  border: none;
  font-family: inherit;
  padding-right: 50px; /* space for search icon */
}

/* =========================
   SEARCH AUTOCOMPLETE
========================= */

.search-container {
  position: relative;
}

.search-results {
  position: absolute;
  top: 40px;
  right: 0;
  left: auto;
  background-color: rgb(60, 116, 1);
  border-radius: 10px;
  width: 220px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-results a {
  display: block;
  padding: 10px 15px;
  color: bisque;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-results a:hover {
  background-color: rgba(132, 255, 0, 0.15);
  color: rgb(132, 255, 0);
}

/* =========================
   HOMEPAGE LAYOUT
========================= */

.homepage {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-section h2 {
  text-align: center;
}

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

.content-card {
  display: block;
  background-color: rgb(85, 94, 74);
  padding: 15px;
  border-radius: 20px;
  text-decoration: none;
  color: bisque;
  width: 80%;
  max-width: 600px;
  transition: all 0.3s ease;
  text-align: center;
}

.content-card img {
  width: 100%;
  border-radius: 15px;
}

.content-card:hover {
  background-color: rgb(132, 255, 0);
  color: black;
  transform: scale(1.03);
  box-shadow: 0 0 15px rgb(132, 255, 0);
}

/* =========================
   ALBUM PAGE LAYOUT
========================= */

.album {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 40px;
  align-items: center;
}

.tracklist {
  flex: 1;
}

.album-cover {
  flex: 1;
  max-width: 300px;
  height: auto;
  border-radius: 15px;
}

/* =========================
   BACK BUTTON
========================= */

.back-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: bisque;
  color: seagreen;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 15px;
  font-family: courier new;
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background-color: rgb(132, 255, 0);
  color: black;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgb(132, 255, 0);
}

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

footer {
  margin-top: 50px;
  text-align: center;
  color: bisque;
}

footer a {
  color: rgb(132, 255, 0);
  text-decoration: none;
}


/* images */

.timeline-item img {
  width: 100%;
  border-radius: 15px;
  margin-top: 10px;
}

/* hover effect */

.timeline-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgb(132, 255, 0);
}

.reveal {
  opacity: 0;
  transform: scale(0.9);
  transition: 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: scale(1);
}


/* =========================
   LEARN NCT / TIMELINE PAGE
========================= */

.timeline-page {
    text-align: center;
    margin-top: 60px;
}

.timeline-page > p {
    color: bisque;
    margin-bottom: 40px;
    font-size: 14px;
}

/* the vertical centre line */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgb(132, 255, 0);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================
   TIMELINE ITEMS — zigzag
========================= */

.timeline-item {
    position: relative;
    width: 42%;
    padding: 20px;
    background-color: rgb(113, 124, 99);
    border-radius: 20px;
    margin-bottom: 60px;
    box-sizing: border-box;
    transition: box-shadow 0.4s ease;
    /* year badge colour override */
}

/* odd items sit on the LEFT */
.timeline-item:nth-child(odd) {
    left: 0;
    margin-left: 0;
}

/* even items sit on the RIGHT */
.timeline-item:nth-child(even) {
    left: 58%;
}

.timeline-item:hover {
    box-shadow: 0 0 15px rgb(132, 255, 0);
}

/* year badge */
.timeline-item h2 {
    background-color: rgb(132, 255, 0);
    color: black;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin-top: 0;
}

.timeline-item p {
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

/* clickable image */
.timeline-content img {
    width: 100%;
    border-radius: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.timeline-content img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgb(132, 255, 0);
}

/* =========================
   DETAIL BOX (click to reveal)
========================= */

.timeline-detail {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    width: 210px;
    background-color: rgb(132, 255, 0);
    color: black;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
    z-index: 10;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
}

.timeline-detail.active {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

.timeline-item:nth-child(odd) .timeline-detail {
    left: calc(100% + 100px);
    width: 100%;
}

.timeline-item:nth-child(even) .timeline-detail {
    right: calc(100% + 100px);
    left: auto;
    width: 100%;
}

.timeline-detail h3 {
    margin-top: 0;
    font-size: 11px;
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 10px;
}

.timeline-detail p {
    margin-bottom: 8px;
    font-size: 12px;
}

/* =========================
   REVEAL ON SCROLL
========================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   TIMELINE — MOBILE
========================= */

@media (max-width: 768px) {
    .timeline::after {
        left: 16px;
    }

    .timeline-item {
        width: 85%;
        left: 12% !important; /* override both odd and even, push right of the line */
        margin-bottom: 40px;
    }

    .timeline-detail {
        position: static;
        transform: none;
        opacity: 1;
        width: 100%;
        margin-top: 15px;
        pointer-events: auto;
        box-sizing: border-box;
    }

    /* on mobile just always show detail below the card instead of hidden */
    .timeline-detail {
        display: none;
    }

    .timeline-detail.active {
        display: block;
    }
}

/* responsive: mobile-friendly */
@media (max-width: 768px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 10px 15px;
    }

    .site-title {
        font-size: 11px;
        justify-content: center;
    }

    .header-logo {
        width: 20px;
        height: 20px;
    }

    .search-container input {
        width: 110px;
    }

    .search-results {
        width: 180px;
        right: 0;
        left: auto;
    }

    .dropdown {
        width: 180px;
    }

    /* homepage grid — single column on mobile */
    .homepage {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .content-section {
        align-items: center;
    }

    .content-card {
        width: 100%;
        max-width: 500px;
    }

    /* fix image height — too tall on mobile */
    .content-card img {
        height: 200px;
        object-fit: cover;
    }

    .content-section h2 {
        font-size: 10px;
        text-align: center;
    }
}


/* =========================
   SOLOS NAV
========================= */

/* =========================
   Navigation Links as Buttons
========================= */

main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

main nav a {
  display: inline-block;
  background-color: rgb(113, 124, 99);
  color: bisque;
  padding: 12px 25px;
  border-radius: 25px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

main nav a:hover {
  background-color: rgb(132, 255, 0);
  color: black;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.hero {
  text-align: center;
  padding: 40px 20px 30px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 15px;
  color: bisque;
  max-width: 600px;
  margin: 0 auto 10px;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background-color: rgb(132, 255, 0);
  color: black;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

/* =========================
   SECTION GRID
========================= */

.homepage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 10px;
  align-items: start;
}

.content-section {
  display: flex;
  flex-direction: column;
  align-items: stretch; /* stretch so card fills the column */
}

.content-section h2 {
  font-size: 11px; /* smaller so it doesn't dominate */
  margin-bottom: 12px;
  text-align: left;
  padding-left: 4px;
}

.content-card {
  flex: 1;
  width: auto; /* override the 80% width — grid handles sizing now */
  max-width: none;
  aspect-ratio: unset;
}

.content-card img {
  width: 100%;
  height: 300px;
  object-fit: cover; /* keeps images consistent height without stretching */
  border-radius: 12px;
  display: block;
}

.content-card p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

/* =========================
   SECTION DIVIDER
========================= */

.section-divider {
  grid-column: 1 / -1; /* spans full width across all columns */
  border: none;
  border-top: 1px solid rgba(132, 255, 0, 0.2);
  margin: 5px 0;
}
