/* Modern Mod Catalog Styling */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-image: url("../../images/bg/modsclub.webp");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: #ffffff;
  overflow-y: auto;
}

/* Dark overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: -1;
}

main {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
#mods-container {
  margin-bottom: 40px;
  animation: fadeIn 1s ease;
  max-width: 1200px;
  margin: 60px auto;
  padding: 45px 35px;
  background: linear-gradient(145deg, rgba(30, 30, 40, 0.92), rgba(45, 45, 60, 0.92));
  border-radius: 20px;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#mods-container h1 {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff, #ff85c5, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
  letter-spacing: 1px;
  font-weight: 800;
}

/* Search and Filter */
/* Search and Filter Section */
.search-filter-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto 35px;
  align-items: stretch;
  max-width: 900px;
}

.search-box {
  display: flex;
  gap: 12px;
  width: 100%;
}

.search-box input {
  flex: 1;
  padding: 14px 22px;
  border: 2px solid rgba(255, 105, 180, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.search-box input:focus {
  outline: none;
  border-color: #ff69b4;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 0 20px rgba(255, 105, 180, 0.6),
    0 4px 15px rgba(255, 105, 180, 0.3);
  transform: translateY(-2px);
}

.search-box button {
  padding: 14px 32px;
  background: linear-gradient(135deg, #ff69b4, #a855f7);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.35);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
}

.search-box button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.search-box button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(255, 105, 180, 0.5),
    0 0 30px rgba(168, 85, 247, 0.4);
}

.search-box button:hover::before {
  left: 100%;
}

.search-box button:active {
  transform: translateY(-1px);
}

.filter-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.filter-container select {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 105, 180, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  min-width: 180px;
}

/* Fix for the dropdown items */
.filter-container select option {
  background-color: #2a2a3a;
  color: white;
  padding: 10px;
}

.filter-container select:hover {
  border-color: #ff69b4;
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.filter-container select:focus {
  outline: none;
  border-color: #ff69b4;
  box-shadow: 
    0 0 20px rgba(255, 105, 180, 0.6),
    0 4px 15px rgba(255, 105, 180, 0.3);
}

/* Mod Grid Container */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  margin-bottom: 50px;
}

/* Mod Card Styling */
.mod-card {
  background: linear-gradient(145deg, rgba(35, 35, 50, 0.9), rgba(45, 45, 65, 0.9));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 10px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeIn 0.8s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.mod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 105, 180, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.mod-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(255, 105, 180, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 105, 180, 0.5);
}

.mod-card:hover::before {
  opacity: 1;
}

.mod-image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.mod-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mod-card:hover .mod-image {
  transform: scale(1.12);
}

.mod-details {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.mod-card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  color: #ffffff;
  line-height: 1.3;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #ff85c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.mod-card:hover h2 {
  text-shadow: 0 0 20px rgba(255, 105, 180, 0.8);
}

.mod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.mod-author {
  color: #e8e8e8;
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mod-card:hover .mod-author {
  color: #ff85c5;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 50px 40px;
  background: linear-gradient(145deg, rgba(35, 35, 50, 0.9), rgba(45, 45, 65, 0.9));
  border-radius: 16px;
  margin: 30px auto;
  max-width: 600px;
  box-shadow: 
    0 10px 35px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 105, 180, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.no-results h2 {
  background: linear-gradient(135deg, #ffffff, #ff85c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 40px;
  gap: 25px;
  flex-wrap: wrap;
}

.pagination-button {
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff69b4, #a855f7);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(255, 105, 180, 0.35);
  position: relative;
  overflow: hidden;
}

.pagination-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.pagination-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(255, 105, 180, 0.5),
    0 0 30px rgba(168, 85, 247, 0.4);
}

.pagination-button:hover::before {
  left: 100%;
}

.pagination-button:active {
  transform: translateY(-1px);
}

.pagination-button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: linear-gradient(135deg, #555, #777);
  box-shadow: none;
}

.pagination-button[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.pagination-button[disabled]::before {
  display: none;
}

.pagination-info {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .mod-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #mods-container h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .search-filter-container {
    flex-direction: column;
    gap: 15px;
  }

  .search-box {
    width: 100%;
    flex-direction: row;
  }

  .search-box input {
    flex: 1;
    font-size: 0.9rem;
    padding: 10px;
  }

  .search-box button {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .filter-container {
    width: 100%;
  }

  .filter-container select {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
  }

  .pagination {
    margin: 30px 0 20px;
    gap: 10px;
  }

  .pagination-button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .mod-card {
    min-height: unset;
  }

  .mod-image-container {
    height: 150px;
  }

  .mod-image {
    height: 150px;
  }

  .mod-details {
    padding: 15px;
  }

  .mod-card h2 {
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .mod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
