/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #eee;
}

a {
  color: #00bfff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #1f1f1f;
}

.navbar img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  color: #eee;
  font-weight: 600;
}

.nav-links a:hover {
  color: #00bfff;
}

/* Search bar */
.search-bar {
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  background-color: #333;
  color: #eee;
  font-size: 0.9rem;
}

.search-bar::placeholder {
  color: #999;
}

/* Banner */
.banner {
  height: 50vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  color: #00bfff;
  text-shadow: 1px 1px 3px #000;
}

.banner h1 {
  font-size: 2.8rem;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 6px;
  max-width: fit-content;
}

/* Tagline */
.tagline {
  font-size: 1.1rem;
  color: #ccc;
  margin-top: 6px;
}

/* Rows */
.row {
  margin: 25px 20px;
}

.row h2 {
  font-weight: 700;
  color: #00bfff;
  margin-bottom: 12px;
}

/* List */
.list {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.list::-webkit-scrollbar {
  display: none;
}

.list img {
  width: 150px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.list img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  z-index: 2;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
  z-index: 10;
}

.modal-content {
  background-color: #1f1f1f;
  padding: 20px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  color: #eee;
  position: relative;
  text-align: left;
}

.modal-body {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-body img {
  width: 30%;
  border-radius: 8px;
}

.modal-text {
  flex: 1;
}

.stars {
  color: #ffc107;
  margin-bottom: 15px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #ff4c4c;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}

.server-selector {
  margin-top: 15px;
  color: #ccc;
}

.server-selector label {
  margin-right: 10px;
}

.server-selector select {
  background-color: #333;
  color: #eee;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.server-selector select:hover {
  background-color: #444;
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  padding: 80px 20px 40px;
  align-items: center;
  z-index: 15;
  overflow-y: auto;
}

.search-modal input {
  width: 320px;
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  font-size: 1rem;
  margin-bottom: 30px;
  background-color: #222;
  color: #eee;
}

.search-modal input::placeholder {
  color: #777;
}

.search-modal .results {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.search-modal img {
  width: 120px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.search-modal img:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: #1f1f1f;
  padding: 20px;
  color: #ccc;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #00bfff;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .banner {
    height: 35vh;
    padding: 20px;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .list img {
    width: 130px;
  }

  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .modal-body img {
    width: 60%;
  }

  .modal-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    padding: 10px 15px;
  }

  .nav-links {
    gap: 10px;
    margin-top: 8px;
  }

  .search-bar {
    width: 100%;
  }

  .list img {
    width: 110px;
  }

  .banner h1 {
    font-size: 1.6rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }
}
