/* Professional Dark Theme for Riverbend Elementary Music Program */

:root {
  --primary-bg: #0d1117;
  --secondary-bg: #161b22;
  --tertiary-bg: #1c2128;
  --primary-text: #e6edf3;
  --secondary-text: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --nav-bg: #161b22;
  --nav-link: #e6edf3;
  --nav-link-active: #58a6ff;
  --border-color: #30363d;
  --youtube-red: #ff0000;
  --youtube-red-hover: #cc0000;
  --border-radius: 8px;
  --focus-outline: 2px solid #58a6ff;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: var(--primary-bg);
  color: var(--primary-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--primary-bg);
  color: var(--primary-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--nav-bg);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-row h1 {
  font-size: 1.5rem;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--primary-text);
  flex: 1 1 auto;
  line-height: 1.3;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--tertiary-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 1001;
  transition: background 0.2s;
}

.hamburger:hover {
  background: var(--border-color);
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 0.15rem;
  margin: 0.25rem 0;
  background: var(--nav-link);
  border-radius: 2px;
  transition: 0.3s;
}

nav {
  margin-top: 0.5rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: none;
  gap: 0.5rem;
  justify-content: center;
  max-width: 1200px;
  padding: 0 1.5rem;
}

nav a {
  color: var(--nav-link);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  display: block;
  border: 1px solid transparent;
}

nav a:hover {
  background: var(--tertiary-bg);
  border-color: var(--border-color);
}

nav a:focus {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

nav a[aria-current="page"] {
  color: var(--nav-link-active);
  background: var(--tertiary-bg);
  border-color: var(--accent);
}

main {
  flex: 1;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

section {
  background: var(--secondary-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

h2 {
  color: var(--accent);
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.director {
  font-size: 1.1rem;
  margin: 1.5rem 0;
}

.program-dates {
  background: var(--tertiary-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  margin-top: 2rem;
}

.program-dates ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.program-dates li {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}

/* YouTube Channel Button */
.youtube-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--youtube-red);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
  margin: 1.5rem 0;
}

.youtube-channel-btn:hover {
  background: var(--youtube-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.youtube-channel-btn:focus {
  outline: 3px solid rgba(255, 0, 0, 0.5);
  outline-offset: 2px;
}

.youtube-channel-btn svg {
  width: 24px;
  height: 24px;
}

ol {
  padding-left: 1.5rem;
  counter-reset: song-counter;
}

ol > li {
  margin: 2rem 0;
  counter-increment: song-counter;
  font-size: 1.05rem;
}

ol > li > strong {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Video Container - Responsive 16:9 */
.video-block {
  margin: 1rem 0 0 0;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--tertiary-bg);
  border: 1px solid var(--border-color);
}

.video-block iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--border-radius);
}

.video-block > div {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.video-block a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

.video-block a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.video-block p {
  margin: 1rem;
  padding: 1rem;
  background: var(--tertiary-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

footer {
  background: var(--nav-bg);
  color: var(--secondary-text);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  nav ul {
    display: flex;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  header {
    position: sticky;
    padding: 0.75rem 0;
  }

  .header-row {
    padding: 0 1rem;
  }

  .header-row h1 {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .hamburger {
    display: flex;
  }

  nav {
    margin-top: 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    align-items: stretch;
    background: var(--nav-bg);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0.5rem 1rem;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
  }

  body.nav-open nav ul {
    display: flex !important;
  }

  nav li {
    width: 100%;
  }

  nav a {
    width: 100%;
    text-align: left;
  }

  main {
    margin: 1rem 0;
    padding: 1rem 0.5rem;
  }

  section {
    padding: 1.5rem 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  ol {
    padding-left: 1rem;
  }

  ol > li {
    margin: 1.5rem 0;
  }

  ol > li > strong {
    font-size: 1.1rem;
  }

  .youtube-channel-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-row {
    padding: 0 0.75rem;
  }

  .header-row h1 {
    font-size: 1rem;
  }

  section {
    padding: 1rem 0.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .program-dates {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .hamburger,
  .youtube-channel-btn {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  main,
  section {
    box-shadow: none;
    border: none;
  }
}
