/* ============================================
   Classic Rock and Beyond — Site Styles
   ============================================ */

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

:root {
  --bg-dark: #211e19;
  --bg-card: #2b2721;
  --bg-card-hover: #33302a;
  --text-primary: #f6ecd3;
  --text-muted: #e8dfc9;
  --accent: #8c956a;
  --accent-hover: #a3ad7e;
  --accent-cream: #ddd2b1;
  --border: #3d3830;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #f6ecd3;
}

/* --- Nav Bar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(33, 30, 25, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #f6ecd3;
}

.nav-logo:hover {
  color: #f6ecd3;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #f6ecd3;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(140, 149, 106, 0.15);
}

/* Hamburger menu */
.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  position: relative;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
  position: absolute;
}

.hamburger {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hamburger::before {
  content: "";
  top: -7px;
  left: 0;
}

.hamburger::after {
  content: "";
  top: 7px;
  left: 0;
}

.nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger {
  background: transparent;
}

.nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(33, 30, 25, 0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle-checkbox:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(
    to bottom,
    rgba(33, 30, 25, 0.75) 0%,
    rgba(33, 30, 25, 0.85) 100%
  );
}

.hero-info {
  text-align: center;
  padding: 1.5rem 1.5rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  width: 600px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}


.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

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

@media (max-width: 600px) {
  .hero {
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-logo {
    width: 85vw;
    max-width: 400px;
  }
}

/* --- Home Brand Logo --- */
.home-brand {
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
}

.home-brand-logo {
  width: 120px;
  height: auto;
  border-radius: 10px;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.home-brand-logo:hover {
  opacity: 1;
}

/* --- Home About with Photo --- */
.home-about {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.home-about-text {
  flex: 1;
}

.home-about-photo {
  max-width: 380px;
  width: 380px;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

@media (max-width: 768px) {
  .home-about {
    flex-direction: column;
  }
  .home-about-photo {
    width: 100%;
    max-width: 320px;
  }
}

/* --- Home Sections --- */
.home-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.home-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.home-section p {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.home-cta {
  text-align: center;
}

.home-cta p {
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--bg-dark);
  transform: translateY(-1px);
}

/* --- Page Header --- */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Page Content --- */
.page-single,
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

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

.page-content ul, .page-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-muted);
}

.page-content li {
  margin-bottom: 0.35rem;
}

.page-content strong {
  color: var(--text-primary);
}

/* --- Episode Cards Grid --- */
.episodes-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .episodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.episode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.episode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.episode-card a {
  display: block;
  padding: 1.25rem 1.5rem;
  color: inherit;
  text-decoration: none;
}

.episode-card h2,
.episode-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.episode-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.episode-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.episode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  background: rgba(140, 149, 106, 0.2);
  color: var(--accent);
  border-radius: 20px;
  font-weight: 500;
}

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

.episode-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.episode-card--featured {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

/* --- Episode Single --- */
.episode-single {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.episode-header {
  margin-bottom: 2rem;
}

.episode-header h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.episode-header time {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.episode-description {
  margin-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.episode-description p {
  margin-bottom: 1rem;
}

/* Mixcloud Player */
.episode-player {
  margin-bottom: 2.5rem;
}

.episode-player h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.mixcloud-embed iframe {
  border-radius: 8px;
}

/* Drew and Mark Show Archives YouTube embeds */
.youtube-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tracklist */
.episode-tracklist {
  margin-bottom: 2.5rem;
}

.episode-tracklist h2 {
  font-size: 1.3rem;
  color: var(--accent);
  display: inline;
}

.episode-tracklist summary {
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.episode-tracklist summary::before {
  content: "▸";
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.episode-tracklist details[open] summary::before {
  transform: rotate(90deg);
}

.episode-tracklist summary::-webkit-details-marker {
  display: none;
}

.tracklist-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.tracklist-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tracklist-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(61, 56, 48, 0.5);
}

.tracklist-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.tracklist-table tbody tr:hover {
  background: rgba(140, 149, 106, 0.08);
}

.tracklist-segment {
  color: var(--text-muted);
  font-style: italic;
}

.tracklist-segment td {
  opacity: 0.7;
}

/* Responsive table scroll */
@media (max-width: 600px) {
  .episode-tracklist {
    overflow-x: auto;
  }
  .tracklist-table {
    min-width: 500px;
  }
}

/* Episode Nav */
.episode-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.episode-nav-link {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}

.episode-nav-link:hover {
  border-color: var(--accent);
  background: rgba(140, 149, 106, 0.1);
}

/* --- List Items (generic) --- */
.list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.list-item h2 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.list-item time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.list-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 80px;
  height: auto;
  border-radius: 6px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-tagline {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-sep {
  color: var(--border);
  margin: 0 0.5rem;
}

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

/* --- Photos --- */
.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 600px) {
  .photo-row {
    grid-template-columns: 1fr;
  }
}

.photo {
  margin: 0;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
  cursor: zoom-in;
}

.photo img:hover {
  transform: scale(1.02);
}

.photo figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}

.photo-wide {
  margin: 2rem 0;
}

.photo-wide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}
