/**
 * BALL X PIT - Special Balls Page Styles
 * Clean, text-only card design
 */

/* Balls Section */
.balls-section {
  padding: 4rem 0;
  background: var(--color-background, #0a0e27);
}

.balls-section:nth-child(odd) {
  background: var(--color-background-alt, #0f1535);
}

.balls-section .section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-text-primary, #ffffff);
  margin-bottom: 0.5rem;
  text-align: center;
}

.balls-section .section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary, #a0a0b0);
  text-align: center;
  margin-bottom: 3rem;
}

/* Balls Grid */
.balls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .balls-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Ball Card - Clean Text-Only Design */
.ball-card {
  background: linear-gradient(135deg, #1a1f3a 0%, #151a2e 100%);
  border: 1px solid rgba(100, 120, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ball-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 120, 255, 0.4);
  box-shadow: 0 8px 24px rgba(100, 120, 255, 0.15);
}

/* Evolution cards have different accent color */
.ball-card.evolution-card {
  border-color: rgba(255, 180, 50, 0.2);
}

.ball-card.evolution-card:hover {
  border-color: rgba(255, 180, 50, 0.4);
  box-shadow: 0 8px 24px rgba(255, 180, 50, 0.15);
}

/* Ball Header */
.ball-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.ball-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
  flex: 1;
}

/* Ball Badges */
.ball-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.basic-badge {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #ffffff;
}

.evolution-badge {
  background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
  color: #ffffff;
}

/* Ball Category */
.ball-category {
  color: #a0a0b0;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Ball Stats Row */
.ball-stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.ball-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ball-stat .stat-label {
  font-size: 0.75rem;
  color: #808090;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ball-stat .stat-value {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 600;
}

/* Rarity Colors */
.rarity-common {
  color: #9e9e9e;
}

.rarity-uncommon {
  color: #4caf50;
}

.rarity-rare {
  color: #2196f3;
}

.rarity-epic {
  color: #9c27b0;
}

.rarity-legendary {
  color: #ff9800;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

/* Ball Recipe */
.ball-recipe {
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(255, 180, 50, 0.1);
  border-left: 3px solid #ffa726;
  border-radius: 4px;
}

.ball-recipe strong {
  color: #ffa726;
  display: block;
  margin-bottom: 0.25rem;
}

.recipe-text {
  color: #ffffff;
  font-weight: 500;
}

/* Ball Effect */
.ball-effect {
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(100, 120, 255, 0.1);
  border-radius: 8px;
  line-height: 1.6;
}

.ball-effect strong {
  color: #6478ff;
  display: block;
  margin-bottom: 0.5rem;
}

/* Ball Meta Info */
.ball-meta {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(50, 200, 150, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ball-meta strong {
  color: #32c896;
  display: block;
  margin-bottom: 0.25rem;
}

/* Evolution Potential */
.ball-evolution-potential {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: rgba(255, 100, 150, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
}

.ball-evolution-potential strong {
  color: #ff6496;
  display: block;
  margin-bottom: 0.5rem;
}

.evolution-list {
  color: #ffffff;
  line-height: 1.6;
}

/* Ball Tip */
.ball-tip {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(100, 200, 255, 0.08);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #d0d0e0;
}

.ball-tip strong {
  color: #64c8ff;
}

/* Loading Message */
.loading-message {
  text-align: center;
  padding: 3rem;
  color: #a0a0b0;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 480px) {
  .ball-card {
    padding: 1rem;
  }
  
  .ball-name {
    font-size: 1.25rem;
  }
  
  .ball-stats-row {
    gap: 1rem;
  }
  
  .balls-section .section-title {
    font-size: 1.5rem;
  }
}

/* Animation on load */
.ball-card {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for cards */
.ball-card:nth-child(1) { animation-delay: 0.05s; }
.ball-card:nth-child(2) { animation-delay: 0.1s; }
.ball-card:nth-child(3) { animation-delay: 0.15s; }
.ball-card:nth-child(4) { animation-delay: 0.2s; }
.ball-card:nth-child(5) { animation-delay: 0.25s; }
.ball-card:nth-child(6) { animation-delay: 0.3s; }

