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

body {
  font-family: 'Roboto', sans-serif;
  background: #111;
  color: #fff;
  min-height: 100vh;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}

a {
  color: inherit;
}

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

/* Top Bar */
body > header {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  background: #000;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body > header > .logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  background: #fff;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  padding-right: 3rem;
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: #000;
  text-decoration: none;
}

body > header > .header-nav {
  display: flex;
  align-items: stretch;
  gap: 0;

  & .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s, background 0.2s;

    &:hover {
      color: #ff9800;
      background: rgba(255, 255, 255, 0.05);
    }
  }

  & .rss-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;

    &:hover {
      color: #ff9800;
      background: rgba(255, 255, 255, 0.05);
    }

    & svg {
      display: block;
    }
  }

  & .nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;

    & .dropdown-toggle {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 1.5rem;
      color: #fff;
      text-decoration: none;
      font-family: 'Oswald', sans-serif;
      font-size: 0.9rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: color 0.2s, background 0.2s;

      &:hover {
        color: #ff9800;
        background: rgba(255, 255, 255, 0.05);
      }
    }

    & .dropdown-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #1a1a1a;
      min-width: 200px;
      list-style: none;
      margin: 0;
      padding: 0.5rem 0;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      z-index: 200;

      & li {
        list-style: none;
        margin: 0;
        padding: 0;

        & a {
          display: block;
          padding: 0.75rem 1.5rem;
          color: #fff;
          text-decoration: none;
          font-size: 0.9rem;
          transition: background 0.2s, color 0.2s;

          &:hover {
            background: #2a2a2a;
            color: #ff9800;
          }
        }
      }
    }

    &:hover .dropdown-menu {
      display: block;
    }
  }

  & .nav-search {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    flex: 1;
    max-width: 300px;

    & input {
      width: 100%;
      padding: 0.5rem 1rem;
      background: #222;
      border: 1px solid #333;
      border-radius: 4px;
      color: #fff;
      font-size: 0.9rem;
      font-family: 'Roboto', sans-serif;

      &::placeholder {
        color: rgba(255, 255, 255, 0.4);
      }

      &:focus {
        outline: none;
        border-color: #555;
      }
    }
  }
}

/* Value Proposition Hero */
.value-prop-hero {
  background: #000;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;

  & .value-prop-content {
    max-width: 800px;
    margin: 0 auto;
    display: block; /* Ensure it's not flexed by global header rule */
  }

  & h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
  }

  & p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* Hero Section */
.hero {
  background: #00a8b7;
  position: relative;
  display: flex;
  min-height: 500px;
  flex-direction: row;

  & figure {
    flex: 0 0 auto;
    max-width: 40%;

    & img {
      width: 100%;
      height: auto;
      aspect-ratio: 1;
      object-fit: cover;
      display: block;
    }
  }

  & .hero-player {
    aspect-ratio: 1;
    flex: 0 0 50%;
    max-width: 50%;

    & iframe {
      width: 100%;
      height: 100%;
      border: none;
    }
  }

  & article {
    flex: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.75rem;

    & .hero-meta-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }

    & .hero-series {
      font-family: 'Oswald', sans-serif;
      font-size: 1rem;
      font-weight: 500;
      text-transform: uppercase;
    }

    & .hero-date {
      font-family: 'Roboto', sans-serif;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.4);
    }

    & h2 {
      font-size: 3.5rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.1;
    }

    & .hero-description {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.9);
      line-height: 1.5;
      max-width: 550px;
    }

    & .hero-tags-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 0.5rem;
    }

    & .hero-tags {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      list-style: none;
      padding: 0;
      margin: 0;

      & .tag {
        font-family: 'Oswald', sans-serif;
        font-size: 0.9rem;
        font-weight: 600;
        color: #000;
        background: rgba(255, 255, 255, 0.9);
        padding: 0.25rem 0.5rem;
      }
    }

    & .hero-duration {
      font-family: 'Roboto', sans-serif;
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.4);
    }

    & .mixcloud-widget {
      margin-top: 1rem;

      & iframe {
        width: 100%;
        height: 60px;
        border: none;
        border-radius: 4px;
      }
    }

    & .social-share {
      margin-top: 1rem;
      display: flex;
      gap: 0.5rem;
      align-items: center;

      & a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        transition: all 0.2s;
        text-decoration: none;

        &:hover {
          background: rgba(255, 255, 255, 0.2);
          transform: translateY(-2px);
        }

        & svg {
          width: 18px;
          height: 18px;
          fill: #fff;
        }
      }
    }
  }
}

/* Archive Section */
.archive {
  padding: 3rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 0;
  background: #111;

  & h2 {
    display: none;
  }

  & .shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
  }
}

/* Show Card */
.show-card {
  background: #1a1a1a;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;

  &:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  & a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
  }

  & img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: filter 0.3s;
  }

  &:hover img {
    filter: brightness(0.7);
  }

  & .show-duration {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    z-index: 5;
  }

  & .show-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
  }

  &:hover .show-overlay {
    opacity: 1;
  }

  & .show-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    text-transform: uppercase;
  }

  & .show-description {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
  }
}

/* Show Detail Page */
.show-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;

  & .tracklist {
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;

    & h2 {
      margin: 0 0 1rem;
      font-size: 1.25rem;
    }

    & ol {
      margin: 0;
      padding-left: 1.5rem;
    }

    & li {
      margin: 0.75rem 0;
      padding-left: 0.5rem;
    }

    & .track-item-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
    }

    & .track-link {
      opacity: 0.3;
      transition: opacity 0.2s, transform 0.2s;
      font-size: 1.2rem;
      text-decoration: none;

      &:hover {
        opacity: 1;
        transform: scale(1.2);
      }
    }

    & .artist {
      font-weight: 600;
    }

    & .album {
      color: rgba(255, 255, 255, 0.6);
      font-size: 0.9rem;
    }
  }

  & .back-link {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    & a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;

      &:hover {
        color: #fff;
      }
    }
  }
}

/* About Page */
.about-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 3rem;
  background: #111;

  & .about-content {
    & h1 {
      font-size: 3rem;
      margin-bottom: 3rem;
      color: #fff;
      line-height: 1.1;
    }

    & h2 {
      font-size: 1.5rem;
      margin-top: 3rem;
      margin-bottom: 1.25rem;
      color: #fff;
      line-height: 1.2;
    }

    & p {
      font-size: 1.1rem;
      line-height: 1.8;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 1.75rem;
    }

    & ul {
      margin: 1.75rem 0 2rem 0;
      padding-left: 2.5rem;
      list-style: disc;

      & li {
        font-size: 1.1rem;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.85);
        margin-bottom: 1rem;
      }
    }
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: #444;
  background: #000;
  font-size: 0.875rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
  main {
    flex-direction: column;
    text-align: left;
  }

  header .logo {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
  }

  .hero {
    min-height: 400px;
  }

  .hero figure img {
    height: 400px;
  }

  .hero article {
    padding: 2rem 3rem;
  }

  .hero article h2 {
    font-size: 2.5rem;
  }

  .archive {
    padding: 2rem 3rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 60px;
  }

  header .logo {
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    padding-right: 2rem;
  }

  header .header-nav .nav-link {
    padding: 0 1rem;
    font-size: 0.8rem;
  }

  header .header-nav .rss-link {
    padding: 0 1rem;
  }

  header .header-nav .rss-link svg {
    width: 18px;
    height: 18px;
  }

  .about-page {
    padding: 3rem 2rem;

    & .about-content h1 {
      font-size: 2.25rem;
      margin-bottom: 2.5rem;
    }

    & .about-content h2 {
      font-size: 1.35rem;
      margin-top: 2.5rem;
      margin-bottom: 1rem;
    }

    & .about-content p {
      font-size: 1.05rem;
      margin-bottom: 1.5rem;
    }

    & .about-content ul {
      margin: 1.5rem 0 1.75rem 0;
      padding-left: 2rem;
    }

    & .about-content ul li {
      font-size: 1.05rem;
      margin-bottom: 0.85rem;
    }
  }

  .value-prop-hero {
    padding: 3rem 1.5rem;
  }

  .value-prop-hero h1 {
    font-size: 1.75rem;
  }

  .value-prop-hero p {
    font-size: 1.1rem;
  }

  .hero {
    min-height: auto;
    flex-direction: column;
  }

  .hero figure {
    max-width: 100%;
  }

  .hero figure img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .hero .hero-player {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero article {
    padding: 2rem 1.5rem;
  }

  .hero article h2 {
    font-size: 1.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero article .hero-description {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .hero article .hero-tags {
    justify-content: flex-start;
  }

  .hero article .social-share {
    justify-content: flex-start;
  }

  .hero article .social-share a {
    width: 36px;
    height: 36px;
  }

  .hero article .social-share a svg {
    width: 16px;
    height: 16px;
  }

  .archive {
    padding: 1.5rem;

    & .shows-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
    }
  }

  .show-detail {
    padding: 0 1rem;

    & .tracklist {
      padding: 1rem;
    }
  }
}

@media (max-width: 480px) {
  header {
    height: 50px;
  }

  header .logo {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    padding-right: 1.2rem;
  }

  header .header-nav .nav-link {
    padding: 0 0.75rem;
    font-size: 0.75rem;
  }

  header .header-nav .rss-link {
    padding: 0 0.75rem;
  }

  header .header-nav .rss-link svg {
    width: 16px;
    height: 16px;
  }

  .about-page {
    padding: 2.5rem 1.5rem;

    & .about-content h1 {
      font-size: 2rem;
      margin-bottom: 2rem;
    }

    & .about-content h2 {
      font-size: 1.2rem;
      margin-top: 2rem;
      margin-bottom: 0.85rem;
    }

    & .about-content p {
      font-size: 1rem;
      margin-bottom: 1.25rem;
    }

    & .about-content ul {
      margin: 1.25rem 0 1.5rem 0;
      padding-left: 1.75rem;
    }

    & .about-content ul li {
      font-size: 1rem;
      margin-bottom: 0.75rem;
    }
  }

  .value-prop-hero {
    padding: 2rem 1rem;
  }

  .value-prop-hero h1 {
    font-size: 1.5rem;
  }

  .value-prop-hero p {
    font-size: 1rem;
  }

  .hero article {
    padding: 1.5rem 1rem;
  }

  .hero article h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero article .hero-description {
    font-size: 0.9rem;
  }

  .hero article .hero-tags .tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }

  .hero article .social-share a {
    width: 32px;
    height: 32px;
  }

  .hero article .social-share a svg {
    width: 14px;
    height: 14px;
  }

  .archive {
    padding: 1rem;
  }

  .archive .shows-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .filter-controls {
    flex-direction: column;
    padding: 1rem;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }

  .category-header {
    padding: 2rem 1.5rem;
  }

  .category-header h1 {
    font-size: 1.75rem;
  }

  .nav-dropdown .dropdown-menu {
    position: fixed;
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* Category Header */
.category-header {
  background: #111;
  padding: 1.5rem 4rem;
  text-align: left;
}

.category-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-transform: lowercase;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: #1a1a1a;
  gap: 1rem;
}

.search-box {
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
  outline: none;
  border-color: #00a8b7;
}

.sort-control button {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}

.sort-control button:hover {
  border-color: #00a8b7;
  color: #00a8b7;
}
