@import url("https://fonts.googleapis.com/css2?family=Staatliches&display=swap");

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

html {
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: lch(54.1% 76.14 347.39);
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header and Navigation */
header {
  background-color: lch(54.1% 76.14 347.39);
  color: white;
  border-bottom: #e65a09;
  border-width: thin;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: white;
}

.nav-toggle:focus {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.nav-toggle .bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: white;
  border-radius: 1px;
  margin: 0.25rem 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nav-links li {
  margin: 0;
}

.nav-open .nav-links {
  display: flex;
}

@media (max-width: 768px) {
  nav {
    padding: 0.5rem 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.75rem;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links a {
    color: #6d2e4b;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

nav a {
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: #FF6B35;
  text-decoration: none;
}

nav a.active {
  background-color: #FF6B35;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  min-height: calc(100vh - 200px);
}

h1, h2, h3, .brand {
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-family: 'Staatliches', sans-serif;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  border-bottom: 2px solid #FF6B35;
  padding-bottom: 0.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Home Page */
.hero {
  background-image: linear-gradient(rgba(26, 26, 26, 0.55), rgba(26, 26, 26, 0.55)), url("/images/banners/MarketPlacePanorama.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.audio-playlist {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #fff2ef;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 53, 0.16);
}

.audio-playlist h2 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
  color: #1a1a1a;
}

.playlist-items {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.playlist-track {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background-color: #fff7f5;
  border: 1px solid rgba(255, 107, 53, 0.12);
  display: flex;
  align-items: center;
}

.track-select-button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0.2rem 0;
}

.track-select-button:hover,
.track-select-button:focus {
  color: #ff6b35;
  outline: none;
}

.track-select-button.active {
  color: #ff4500;
}

.current-track-name {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.track-details p {
  margin: 0;
  color: #6d4e4c;
  font-size: 0.9rem;
  line-height: 1.4;
}

.track-details p {
  margin: 0;
  color: #6d4e4c;
  font-size: 0.9rem;
  line-height: 1.4;
}

.playlist-track audio {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .playlist-track {
    padding: 0.75rem;
  }
}

@media (max-width: 768px) {
  .audio-playlist {
    padding: 1rem;
  }
}

.cta-button {
  display: inline-block;
  background-color: #00CED1;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  transition: transform 0.2s;
}

.cta-button:hover {
  transform: scale(1.05);
  text-decoration: none;
  background-color: #FF1493;
}

.featured-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-card {
  background-color: #fff0ed;
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid #FF6B35;
  border: 1px solid rgba(255, 107, 53, 0.16);
}

.section-card h3 {
  color: #FF6B35;
  margin-bottom: 1rem;
}

.section-card a {
  font-weight: bold;
  display: inline-block;
  margin-top: 1rem;
}

/* Schedule Page */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  border: 1px solid rgba(255, 107, 53, 0.18);
  border-radius: 8px;
  padding: 1.5rem;
  background-color: #fff5f2;
  transition: box-shadow 0.3s;
  align-items: stretch;
}

.event-card:hover {
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.event-card-body {
  flex: 1;
}

.event-card-image {
  min-width: 220px;
  max-width: 260px;
  align-self: center;
}

.event-card-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #ddd;
}

@media (max-width: 768px) {
  .event-card {
    flex-direction: column;
  }

  .event-card-image {
    max-width: 100%;
  }
}

.event-date {
  background-color: #FF6B35;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: bold;
}

.event-time {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.event-venue {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.event-location {
  color: #666;
  margin-bottom: 1rem;
}

.schedule-calendar-panel {
  display: flex;
  flex-direction: column;
  margin: 0 0 1rem;
  max-width: 320px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
}

.calendar-title {
  flex: 1;
  text-align: center;
  color: #6d2e4b;
  font-weight: 700;
  font-size: 1.25rem;
}

.calendar-nav-button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(109, 46, 75, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #6d2e4b;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.calendar-nav-button:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.calendar-panel {
  width: 100%;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 107, 53, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(8px);
}

.calendar-frame {
  display: grid;
  gap: 0.5rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: #555;
  font-weight: 700;
}

.calendar-weekday {
  padding: 0.4rem 0;
  color: #8a5b6a;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-cell {
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.88rem;
}

.calendar-empty {
  background: transparent;
}

.calendar-empty-day {
  background-color: rgba(255, 245, 242, 0.7);
  color: #9b7d7c;
  padding: 0;
}

.calendar-event-day {
  background-color: #ff6b35;
  color: white;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border-radius: 10px;
  padding: 0;
}

.calendar-event-day:hover,
.calendar-event-day:focus {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.22);
  outline: none;
}

.calendar-event-day:focus-visible {
  outline: 2px solid #ff1493;
  outline-offset: 2px;
}

.highlight-event {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

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

  .schedule-calendar-panel {
    align-items: flex-end;
  }
}

@media (max-width: 860px) {
  .schedule-calendar-panel {
    align-items: stretch;
  }
}

/* Media Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item-title {
  padding: 1rem;
  font-weight: bold;
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* About Page */
.band-description {
  background-color: #fff3f1;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 107, 53, 0.14);
}

.band-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.member-card {
  text-align: center;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background-color: #eee;
}

.member-info {
  padding: 1.5rem;
}

.member-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.member-role {
  color: #FF6B35;
  font-weight: bold;
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button {
  background-color: #FF6B35;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
}

button:hover {
  background-color: #FF1493;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  nav ul {
    gap: 0.25rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .featured-sections {
    grid-template-columns: 1fr;
  }

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

  .gallery-item img {
    height: 200px;
  }

  .band-members-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }

  .member-photo {
    height: 250px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 1.5rem;
  }

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

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  nav a {
    display: block;
    padding: 0.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .band-members-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1rem;
  }
}
