/*
 * Global styles for DIT LINEUP
 * We favour a light background with dark text for legibility.
 */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  background: #f7f7f7;
}

header .hero {
  background: url('hero.png') center/cover no-repeat;
  color: #ffffff;
  height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

header .hero h1 {
  font-size: 4rem;
  margin: 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

header .hero p {
  font-size: 1.5rem;
  margin-top: 0.5em;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

#loginBtn {
  margin-top: 2em;
  padding: 1em 2.5em;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  background-color: #1db954; /* Spotify green */
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#loginBtn:hover {
  background-color: #1ed760;
}

main {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

section {
  margin-bottom: 60px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

/* Container for festival cards */
.festival-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.festival-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 20px;
  flex: 1 1 calc(33.33% - 20px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.festival-card h3 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.festival-card p {
  margin: 0.25em 0;
  line-height: 1.4;
}

.festival-card .match-count {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1db954;
  margin-top: 0.5em;
}

.festival-card a {
  margin-top: 1em;
  text-decoration: none;
  color: #1db954;
  font-weight: 600;
  transition: color 0.2s;
}

.festival-card a:hover {
  color: #14833b;
}

/* Highlight the top match */
.top-match {
  border: 2px solid #1db954;
}

@media (max-width: 900px) {
  .festival-card {
    flex: 1 1 calc(50% - 20px);
  }
  header .hero h1 {
    font-size: 3rem;
  }
  header .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 600px) {
  .festival-card {
    flex: 1 1 100%;
  }
  header .hero h1 {
    font-size: 2.5rem;
  }
  header .hero p {
    font-size: 1rem;
  }
  #loginBtn {
    font-size: 1rem;
    padding: 0.8em 2em;
  }
}

footer {
  text-align: center;
  padding: 20px;
  background: #222222;
  color: #ffffff;
  font-size: 0.9rem;
}