/* Pet Ability Calculator Styles */
.pet-ability-calculator {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
  border-radius: 12px;
  border: 1px solid #444;
}

.pet-ability-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
}

.pet-ability-header h3 {
  color: #ece21c;
  font-size: 20px;
  margin: 0;
}

/* Pet Search */
.pet-search-container {
  margin-bottom: 20px;
}

.pet-search-container input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  background: #2e2e2e;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

.pet-search-container input:focus {
  border-color: #ece21c;
  outline: none;
  box-shadow: 0 0 5px rgba(236, 226, 28, 0.3);
}

/* Pet Grid */
.pet-grid-container {
  background: #2a2a2a;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #444;
  margin-bottom: 20px;
}

.pet-grid-title {
  color: #ece21c;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.pet-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.ability-button {
  background: #1e1e1e;
  border: 1px solid #555;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.ability-button:hover {
  background: #2a2a2a;
  border-color: #ece21c;
  transform: translateY(-2px);
}

.ability-button.active {
  border: 2px solid #90ee90;
  background-color: #123c12;
  box-shadow: 0 0 15px 3px #90ee90;
  animation: pulse-glow-green 2s ease-in-out infinite;
}

@keyframes pulse-glow-green {
  0% {
    box-shadow: 0 0 15px 3px #90ee90;
  }
  50% {
    box-shadow: 0 0 25px 5px #90ee90;
  }
  100% {
    box-shadow: 0 0 15px 3px #90ee90;
  }
}

.ability-button img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}

.ability-button span {
  font-size: 11px;
  color: #ccc;
  text-align: center;
  line-height: 1.2;
}

/* Pet Ability Calculator Section Styles Only */
.pet-calculator-section {
  background: linear-gradient(135deg, #2a2a2a 0%, #323232 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #555;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.calculator-title {
  color: #ece21c;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

/* Input Groups */
.calc-input-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.calc-input-group {
  flex: 1;
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-input-group label {
  color: #e0e0e0;
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  min-width: 80px;
}

.calc-input-group input {
  width: 80px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  text-align: center;
  background: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 4px;
}

.calc-input-group input:focus {
  border-color: #ece21c;
  outline: none;
}

/* Rarity Selection */
.rarity-selection {
  background: #1e1e1e;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #555;
  margin-bottom: 15px;
}

.rarity-title {
  color: #ece21c;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.rarity-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.rarity-option {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e0e0e0;
  font-size: 13px;
}

.rarity-option input[type="radio"] {
  margin: 0;
}

/* Toy Selection */
.toy-selection {
  background: #1e1e1e;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #555;
  margin-bottom: 15px;
}

.toy-title {
  color: #ece21c;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.toy-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.toy-option {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e0e0e0;
  font-size: 13px;
}

.toy-option input[type="checkbox"] {
  margin: 0;
}

/* Action Buttons */
.calc-action-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.calc-button {
  flex: 2;
  height: 40px;
  font-size: 16px;
  background: linear-gradient(45deg, #ece21c, #f0e447);
  color: #1e1e1e;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.calc-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(236, 226, 28, 0.3);
}

.reset-button {
  flex: 1;
  height: 40px;
  font-size: 14px;
  background: #555;
  color: #e0e0e0;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.reset-button:hover {
  background: #666;
  transform: translateY(-1px);
}

/* Results */
.pet-ability-results {
  background: #1e1e1e;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #555;
  color: #e0e0e0;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100px;
}

.pet-ability-results h4 {
  color: #ece21c;
  margin: 0 0 10px 0;
  font-size: 16px;
}

.pet-ability-results hr {
  border: none;
  border-top: 1px solid #555;
  margin: 15px 0;
}

.pet-ability-results strong {
  color: #ece21c;
}

/* Remove spinner arrows */
.pet-calculator-section input[type="number"] {
  -moz-appearance: textfield;
}

.pet-calculator-section input[type="number"]::-webkit-outer-spin-button,
.pet-calculator-section input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .pet-calculator-section {
    padding: 15px;
    margin-top: 15px;
  }
  
  .calc-input-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .calc-input-group {
    min-width: auto;
    justify-content: space-between;
  }
  
  .calc-input-group label {
    min-width: auto;
    flex: 1;
  }
  
  .calc-input-group input {
    width: 60px;
    font-size: 12px;
    height: 32px;
  }
  
  .rarity-options,
  .toy-options {
    flex-direction: column;
    gap: 8px;
  }
  
  .calc-action-buttons {
    flex-direction: column;
  }
  
  .pet-ability-results {
    font-size: 12px;
  }
  
  .calculator-title {
    font-size: 16px;
  }
}