/* ------------------- Base ------------------- */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0f0f0f;
  color: #eee;
}

h1, h2 {
  margin: 0.5em 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ------------------- Navigation ------------------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 1em 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

nav .site-title {
  font-size: 2em;
  font-weight: bold;
  color: purple;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5em;
}

nav ul li a {
  color: #0ff;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover, nav ul li a.active {
  color: #9f0fff;
  text-shadow: 0 0 8px #9f0fff;
}

/* ------------------- Main ------------------- */
main {
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

.search-section {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 2em;
}

.search-section input[type="text"] {
  width: 50%;
  padding: 1em;
  font-size: 1.2em;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1a1a;
  color: #eee;
}

.search-section button {
  padding: 1em 2em;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(45deg, #9f0fff, #0ff);
  color: #111;
  font-weight: bold;
  transition: 0.3s;
}

.search-section button:hover {
  filter: brightness(1.2);
}

/* ------------------- Buttons ------------------- */
.gradient-btn {
  padding: 0.8em 1.5em;
  border-radius: 8px;
  border: none;
  background: linear-gradient(45deg, #9f0fff, #0ff);
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.gradient-btn:hover {
  filter: brightness(1.2);
}

/* ------------------- Suggestions ------------------- */
.suggestions ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

.suggestions ul li a {
  display: block;
  padding: 0.8em 1.5em;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
  color: #0ff;
  font-weight: 600;
  transition: 0.3s;
}

.suggestions ul li a:hover {
  background: #222;
  transform: scale(1.05);
}

/* ------------------- Popup / Login ------------------- */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup .popup-content {
  background: #1a1a1a;
  padding: 2em;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.popup .close {
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
}

.popup input[type="text"],
.popup input[type="password"] {
  width: 80%;
  padding: 0.8em;
  margin: 0.5em 0;
  border-radius: 8px;
  border: 1px solid #333;
  background: #222;
  color: #eee;
}

/* ------------------- Footer ------------------- */
footer {
  text-align: center;
  padding: 1em 0;
  background: #111;
  margin-top: 3em;
  color: #555;
}

footer a {
  color: #0ff;
  text-decoration: underline;
}
