* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f4f6fb;
  color: #111;
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  color: #4f46e5;
  font-weight: bold;
}

#themeToggle {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h2 {
  margin-bottom: 15px;
}

.hero input {
  width: 300px;
  max-width: 90%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.main {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

#info {
  margin-bottom: 20px;
  color: #666;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 15px;
  transition: 0.3s;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  background: #eee;
  border-radius: 10px;
}

.star {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 18px;
}

.types span {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  margin-right: 5px;
  color: white;
}

.fire { background: #f97316; }
.water { background: #3b82f6; }
.grass { background: #22c55e; }
.poison { background: #a855f7; }

footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #777;
}

.dark {
  background: #0f172a;
  color: white;
}

.dark .navbar,
.dark .card {
  background: #1e293b;
}
