/* Card Appearance */
.pokemon-card {
  display: flex;
  flex-direction: column; /* stack children vertically */
  align-items: stretch;
  justify-content: flex-start;
  width: 75vw;
  margin: 1vh auto;
}

#pokedex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2vh 0;
}

.main-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Image */
.pokemon-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: 10px;
}

/* Type Icons */
.type-icon {
  width: 24px;
  margin-right: 5px;
}

/* Abilities and Stats */
.pokemon-abilities, .ability-container, .hidden-ability {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.pokemon-stats, ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: block;
  font-size: 14px;
}

.ability-name, .stat-name {
  font-weight: bold;
}

.forms-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  width: 100%;
}

.form-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  width: 95%;
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  .form-card {
    background-color: #2a2a2a;
  }
}



/* Body and Dark Mode Support */
body {
  background-color: #f5f5f5;
  color: #333;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #121212;
    color: #ffffff;
  }

  .pokemon-card {
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  }
}

/* Search Container Styles */
#search-container {
  position: relative;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
  padding: 16px;
  margin: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Input Styles */
#search-container input[type="text"] {
  width: 90%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f9f9f9;
  color: #333;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

/* Placeholder */
#search-container input[type="text"]::placeholder {
  color: #999;
}

/* Reset Button (if present) */
#reset-button {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 13px;
  background-color: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#reset-button:hover {
  background-color: #d0d0d0;
}

@media (prefers-color-scheme: dark) {
  #search-container {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 4px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  }

  #search-container input[type="text"] {
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #444;
  }

  #search-container input[type="text"]:focus {
    border-color: #888;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }

  #search-container input[type="text"]::placeholder {
    color: #888;
  }

  #reset-button {
    background-color: #333;
    color: #fff;
  }

  #reset-button:hover {
    background-color: #444;
  }
}

/* Light mode focus */
#search-container input[type="text"]:focus {
  border-color: #007BFF;
  background-color: #fff;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.4);
}

/* Dark mode focus override */
@media (prefers-color-scheme: dark) {
  #search-container input[type="text"]:focus {
    background-color: #2c2c2c; /* same as normal dark input bg */
    border-color: #888;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  }
}


