/* Pokemon Card - Compact */
.pokemon-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  max-width: 380px;
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pokemon-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.pokemon-card-portrait {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  flex-shrink: 0;
}

.pokemon-card-title-section {
  flex: 1;
  min-width: 0;
}

.pokemon-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.pokemon-card-title-row h3 {
  margin: 0;
  font-size: 1.3em;
  color: #333;
  line-height: 1.2;
}

.pokemon-card-tier {
  font-size: 1em;
  line-height: 1;
  margin-top: 2px;
}

.star.filled {
  color: #FFD700;
}

.star.empty {
  color: #ccc;
}

.pokemon-card-types {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.type-icon {
  width: 24px;
  height: 24px;
}

.pokemon-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pokemon-rarity {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.4;
}

.rarity-common { background: #808080; color: white; }
.rarity-uncommon { background: #4CAF50; color: white; }
.rarity-rare { background: #2196F3; color: white; }
.rarity-epic { background: #9C27B0; color: white; }
.rarity-ultra { background: #FF9800; color: white; }
.rarity-unique { background: #F44336; color: white; }
.rarity-legendary { background: #FFD700; color: #333; }

.pokemon-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: bold;
  line-height: 1.4;
}

.badge-additional {
  background: #E91E63;
  color: white;
}

.badge-regional {
  background: #673AB7;
  color: white;
}

/* Info Section - Compact */
.pokemon-card-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Stat Bars - Compact */
.pokemon-card-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  align-items: center;
  gap: 8px;
}

.stat-label {
  font-weight: bold;
  font-size: 0.85em;
  color: #666;
  text-align: right;
}

.stat-bar-container {
  height: 16px;
  background: #e0e0e0;
  border-radius: 8px;
  overflow: visible;
  position: relative;
}

.stat-bar {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50, #66BB6A);
  border-radius: 8px;
  transition: width 0.3s ease;
  min-width: 2%;
}

.stat-bar-attack {
  background: linear-gradient(90deg, #F44336, #EF5350);
}

.stat-bar-defense {
  background: linear-gradient(90deg, #2196F3, #42A5F5);
}

.stat-bar-speed {
  background: linear-gradient(90deg, #FF9800, #FFB74D);
}

.stat-bar-spedef {
  background: linear-gradient(90deg, #9C27B0, #AB47BC);
}

.stat-bar-pp {
  background: linear-gradient(90deg, #00BCD4, #26C6DA);
}

.stat-value {
  font-weight: bold;
  text-align: right;
  color: #333;
  font-size: 0.9em;
}

/* Overshield effect for stats exceeding p95 */
.stat-bar-overshield {
  position: absolute;
  top: 0;
  left: 0;
}

/* First overshield layer (p95 to 2x p95) */
.stat-bar-overshield-1 {
  filter: brightness(0.65);
  z-index: 2;
}

/* Second overshield layer (2x p95 to 3x p95) */
.stat-bar-overshield-2 {
  filter: brightness(0.4);
  z-index: 3;
}