body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  margin: 0;
  padding: 20px;
}

header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #3f51b5 0%, #ff5252 100%);
  color: white;
  margin-bottom: 30px;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
  line-height: 1.4;
}

.intro {
  margin-top: 15px;
  font-size: 0.95em;
  opacity: 0.9;
}

.sub-text {
  font-size: 0.8em;
  margin-top: 5px;
}

.search-box {
  margin-top: 20px;
  position: relative;
}

.search-box input {
  padding: 10px 20px;
  width: 80%;
  max-width: 400px;
  border-radius: 25px;
  border: none;
  font-size: 1em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-suggestions {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-top: 10px;
  z-index: 10;
  overflow: hidden;
}

.search-suggestions.hidden {
  display: none;
}

.search-suggestion {
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: white;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 0.95em;
}

.search-suggestion:hover,
.search-suggestion:focus {
  background: #f7f7f7;
}

.search-suggestion + .search-suggestion {
  border-top: 1px solid #eee;
}

footer {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  color: #888;
  font-size: 0.8em;
  border-top: 1px solid #ddd;
}

h1 {
  text-align: center;
  color: #2c3e50;
}

#pokemon-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

.pokemon-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 0;
}

.base-section {
  background: #fdfdfd;
  margin-bottom: 20px;
}

.mega-section {
  border-top: 2px dashed #eee;
  padding-top: 15px;
  margin-top: 15px;
}

h2 {
  border-left: 5px solid #ff0000;
  padding-left: 10px;
  color: #000;
  margin-top: 0;
  font-size: 1.4em;
}
h3 {
  color: #1976d2;
  margin: 5px 0;
  font-size: 1.2em;
}

.type-row {
  font-weight: bold;
  color: #555;
}

.type-row.type-changed {
  color: #555;
}

.type-row.type-changed .type-value {
  color: #d32f2f;
}

.stat-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stat-list,
.total-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-list li,
.total-list li {
  background: #f0f0f0;
  padding: 8px 10px;
  border-radius: 4px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  width: auto;
}

.stat-list li span {
  display: inline-block;
}

.stat-label {
  font-weight: 600;
  margin-right: 6px;
}

.stat-value {
  text-align: right;
  white-space: nowrap;
}

.total-list li.total {
  background: #333;
  color: white;
  font-weight: bold;
}

.diff-plus {
  color: #e74c3c;
  font-weight: bold;
}
.diff-minus {
  color: #3498db;
  font-weight: bold;
}
.diff-zero {
  color: #999;
}
