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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdf9ff;
  color: #333;
  padding: 20px;
}

header {
  padding-top: 90px;
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header input {
  padding: 10px;
  width: 60%;
  max-width: 400px;
  border: 2px solid #ddd;
  border-radius: 8px;
}

/* Menu button */
#menu-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  width: 50px;
  height: 50px;
  z-index: 1000;
  display: none;
}

/* Menu bar */
#menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f0f0f0;
  padding: 10px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex: 1;
}

#menu a.active {
  color: #007BFF;
  border-bottom: 3px solid #007BFF;
}

#menu a:hover {
  background-color: #e0e0e0;
  color: #007BFF;
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    padding-top: 10px;
  }

  main {
    margin-top: 10px;
  }

  #menu-toggle {
    display: block;
  }

  #menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px); /* glass blur */
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    display: none;
    flex-direction: column;
    padding-top: 100px; /* So it doesn't clash with header */
    z-index: 999;
  }

  #menu.open {
    display: flex;
  }

  #menu a {
    padding: 20px;
    font-size: 18px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  #menu a:last-child {
    border-bottom: none;
  }

  #menu a:hover {
    background-color: #f5f5f5;
  }
}

/* Reset margins */
html, body {
  margin: 0;
  padding: 0;
}



/* GRID STYLING */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

/* CARD STYLING */
.series-card {
  width: 180px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

/* @keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
*/


.series-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

.series-card h3 {
  font-size: 16px;
  padding: 10px;
}

.series-card p {
  padding: 0 10px 10px;
  font-size: 0.9rem;
  color: #777;
}

/* FADE-IN ANIMATION */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FILTER BARS */
.filter-bar,
.year-filter-bar {
  margin: 80px 20px 20px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.filter-bar select,
.filter-bar input,
.year-filter-bar select,
.year-filter-bar input {
  padding: 8px 12px;
  font-size: 16px;
  margin-left: 10px;
  border-radius: 6px;
  border: 1px solid #aaa;
}

/* BL PAIRINGS FILTER BARS */
.filter-bar {
  text-align: center;
  margin: 20px 0;
}

#pairSearchInput {
  padding: 10px;
  width: 60%;
  max-width: 300px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.grid-container,
#pairingGrid a {
  text-decoration: none;
}

/* COUNTS */
#seriesCount {
  text-align: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin: 10px 0;
  color: #555;
}
