* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  color: #f5f5f5;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 15px 40px;
  background: linear-gradient(to right, #dbeb47, #2c2c2c);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar img { height: 45px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px #0ff;
}
.search-bar {
  padding: 8px 12px;
  border-radius: 30px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  outline: none;
}

/* BANNER */
.banner {
  height: 60vh;
  background: url('banner.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner h1 {
  background: rgba(0,0,0,0.5);
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 2.5rem;
  color: #0ff;
  text-shadow: 0 0 15px #0ff;
}

/* ROW & LIST */
.row {
  margin: 30px;
}
.row h2 {
  color: #0ff;
  margin-bottom: 15px;
  border-left: 5px solid #0ff;
  padding-left: 10px;
}
.list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}
.list img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.list img:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #0ff;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(34, 34, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  margin-top: 2%;
}

.modal-content {
  background: rgba(20,20,20,0.8);
  padding: 20px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  border-radius: 10px;
}

.modal-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.modal-body img {
  width: 30%;
  border-radius: 5px;
}

.modal-text {
  flex: 1;
  text-align: left;
}

.modal img {
  width: 25%;
  border-radius: 5px;
}

.stars { color: gold; }
.close {
  position: absolute;
  top: 10px; right: 20px;
  cursor: pointer;
  font-size: 24px;
  color: #ffeb3b;
}

.server-selector {
  margin: 15px 0;
  text-align: left;
  color: #ffeb3b;
}

.search-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(34, 34, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 15;
}

.search-modal input {
  width: 300px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-bottom: 20px;
  background: #555;
  color: #ffeb3b;
}

.search-modal .results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.search-modal img {
  width: 120px;
  border-radius: 5px;
  cursor: pointer;
}

.search-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #ffeb3b;
}

/* MOBILE DISPLAY START */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: row;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-links a, .search-bar {
    width: 100%;
  }

  .search-bar {
    margin-top: 10px;
  }

  .banner {
      height: 30vh;
  }
    
  .modal-body {
    align-items: center;
  }

  .modal-body img {
    width: 40%;
  }

  .modal-text {
    text-align: center;
  }

  .list {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .list img {
    width: 120px;
  }

  .search-modal input {
    margin-top: 50px;
    width: 90%;
  }

  .search-modal .results {
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(45%, 1fr));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 20px;
    padding: 5px;
  }

  .row h2 {
    font-size: 18px;
  }

  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .modal-body img {
    width: 40%;
  }

  .search-modal .close {
    font-size: 24px;
    top: 10px;
    right: 20px;
  }
}
/* MOBILE DISPLAY END */

.footer {
  background: #333;
  color: #ffeb3b;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #ffeb3b;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .footer-content {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: row;
    gap: 8px;
  }
}
