/* =========================
   POKEMON THEME
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #222;
}

.pokedex-app {
  min-height: 100vh;
  background: #f2f2f2;
}

/* =========================
   HEADER
========================= */

.pokedex-header {
  background: #e3350d;
  border-bottom: 6px solid #222;
  padding: 20px;
}

.header-content {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.logo-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pokemon-logo {
  width: 220px;
}

.pokemon-logo-small {
  width: 80px;
}

/* =========================
   SEARCH
========================= */

.search-area {
  max-width: 550px;
  margin: 15px auto 0;
}

.search-box {
  display: flex;
  background: white;
  border: 3px solid #222;
  border-radius: 8px;
  padding: 4px 10px;
}

.search-icon {
  font-size: 22px;
  color: #555;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  padding: 9px;
  font-size: 15px;
}

.suggestions {
  margin-top: 8px;
  font-size: 13px;
}

.suggestion-label {
  color: white;
}

.suggestedPokemon {
  color: #ffe031;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
}

.suggestedPokemon:hover {
  text-decoration: underline;
}

/* =========================
   MAIN
========================= */

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

/* =========================
   TITLE
========================= */

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;
}

.section-label {
  color: #e3350d;
  font-size: 12px;
  font-weight: bold;
}

.section-title h1 {
  margin: 3px 0 0;
  font-size: 30px;
}

.pokemon-count {
  color: #777;
  font-size: 13px;
}

/* =========================
   POKEMON GRID
========================= */

.pokemon-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));

  gap: 15px;
}

/* =========================
   POKEMON CARD
========================= */

.pokemon-card {
  position: relative;

  background: white;

  border: 3px solid #222;

  border-radius: 10px;

  padding: 12px;

  cursor: pointer;

  transition: 0.15s;
}

.pokemon-card:hover {
  transform: translateY(-3px);
  border-color: #e3350d;
}

/* nomor pokemon */

.pokemon-number {
  color: #888;
  font-size: 12px;
  font-weight: bold;
}

/* gambar */

.pokemon-image {
  height: 160px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.pokemon-image img {
  width: 145px;
  height: 145px;
  object-fit: contain;
}

/* nama */

.pokemon-info h2 {
  margin: 0;

  font-size: 20px;

  text-transform: capitalize;
}

/* =========================
   TYPE
========================= */

.type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  margin-top: 7px;
}

.type-badge {
  background: #e3350d;

  color: white;

  padding: 4px 8px;

  border-radius: 4px;

  font-size: 11px;

  text-transform: capitalize;
}

.type-badge.large {
  padding: 6px 12px;
  font-size: 13px;
}

/* =========================
   DETAIL LINK
========================= */

.view-detail-text {
  margin-top: 12px;

  color: #e3350d;

  font-size: 10px;

  font-weight: bold;
}

/* =========================
   BACK BUTTON
========================= */

.back-button {
  background: #222;

  color: white;

  border: none;

  border-radius: 5px;

  padding: 9px 14px;

  cursor: pointer;

  margin-bottom: 15px;
}

.back-button:hover {
  background: #e3350d;
}

/* =========================
   DETAIL
========================= */

.detail-card {
  display: grid;

  grid-template-columns: 1fr 1fr;

  background: white;

  border: 3px solid #222;

  border-radius: 10px;

  overflow: hidden;
}

/* gambar detail */

.detail-image-area {
  position: relative;

  min-height: 450px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #e3350d;
}

.detail-number {
  position: absolute;

  top: 15px;
  left: 20px;

  color: white;

  font-weight: bold;
}

.detail-image {
  width: 80%;
  max-width: 400px;
}

/* informasi */

.detail-content {
  padding: 40px;
}

.detail-label {
  color: #e3350d;

  font-size: 11px;

  font-weight: bold;
}

.detail-name {
  margin: 8px 0 3px;

  font-size: 50px;

  text-transform: capitalize;
}

/* =========================
   MOVES
========================= */

.detail-section {
  margin-top: 25px;
}

.detail-section h3 {
  font-size: 12px;

  color: #777;

  margin-bottom: 8px;
}

.moves {
  display: flex;

  flex-wrap: wrap;

  gap: 5px;

  max-height: 180px;

  overflow-y: auto;
}

.move {
  background: #eee;

  border: 1px solid #ccc;

  padding: 6px 9px;

  border-radius: 4px;

  font-size: 11px;

  text-transform: capitalize;
}

/* =========================
   SHOW MORE
========================= */

.btn-more {
  margin-top: 10px;

  background: #e3350d;

  color: white;

  border: none;

  border-radius: 5px;

  padding: 7px 12px;

  cursor: pointer;

  font-size: 11px;

  font-weight: bold;
}

.btn-more:hover {
  background: #b52a0a;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .pokemon-logo {
    width: 180px;
  }

  .pokemon-logo-small {
    width: 65px;
  }

  .pokemon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pokemon-card {
    padding: 10px;
  }

  .pokemon-image {
    height: 130px;
  }

  .pokemon-image img {
    width: 115px;
    height: 115px;
  }

  .pokemon-info h2 {
    font-size: 17px;
  }

  .detail-card {
    grid-template-columns: 1fr;
  }

  .detail-image-area {
    min-height: 300px;
  }

  .detail-content {
    padding: 25px;
  }

  .detail-name {
    font-size: 40px;
  }
}
.stats {
  margin-top: 25px;
}

.stats h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #777;
}

.stat-item {
  margin-bottom: 10px;
}

.stat-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.stat-info span {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
}

.stat-info strong {
  font-size: 12px;
}

.stat-bar {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: #e3350d;
  border-radius: 5px;
  transition: width 0.3s;
}
.pokedex-heading {
  margin-bottom: 25px;
}

.section-label {
  display: inline-block;

  color: #e3350d;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;

  margin-bottom: 5px;
}

.pokedex-heading h1 {
  margin: 0;

  font-size: 32px;
  font-weight: 800;

  color: #222;
}

.pokedex-heading p {
  margin-top: 8px;
  margin-bottom: 0;

  color: #888;

  font-size: 12px;
}
footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;

  width: 100%;
  padding: 25px 0 35px;
}

.footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 9px 16px;

  background: #fff;
  color: #222;

  border: 2px solid #222;
  border-radius: 6px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.footer:hover {
  background: #e3350d;
  color: #fff;

  transform: translateY(-2px);
}

.footer:active {
  transform: translateY(0);
}
