/* Component Styles */

/* Races Section */
.races {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.race-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  padding: 0; /* Remove padding from the main card */
}

.gameplay-gif {
  width: 100%;
  border-radius: 15px;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.race-card-image {
  height: 220px;
  overflow: hidden;
}

.race-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Focus on the top of the image */
  transition: transform 0.4s ease;
}

.race-card-content {
  padding: 2rem;
}

.race-card-content h3 {
  color: #ff6b35;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.race-card:hover .race-card-image img {
  transform: scale(1.1);
}

.race-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}


.race-subtitle {
  color: #ff6b35;
  font-style: italic;
  margin-bottom: 1rem;
}

.race-abilities h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ability {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.ability-key {
  background: #ff6b35;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 30px;
  text-align: center;
}

.ability-info strong {
  color: #fff;
  display: block;
  margin-bottom: 0.3rem;
}

.ability-info p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.ability-info small {
  color: #888;
  font-size: 0.8rem;
}

.race-passive {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 10px;
  border-left: 4px solid #ff6b35;
  color: #ccc;
  font-size: 0.9rem;
}


/* Gameplay Section */
.gameplay {
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
}

.gameplay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gameplay-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.gameplay-card:hover {
  transform: translateY(-5px);
  border-color: #ff6b35;
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.gameplay-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.gameplay-card p {
  color: #ccc;
  line-height: 1.6;
}

.commands-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.commands-section h3 {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.command-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid #ff6b35;
}

.command-item code {
  background: #333;
  color: #ff6b35;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-weight: bold;
}

.command-item span {
  color: #ccc;
  font-size: 0.9rem;
}

/* Gallery Section */
.gallery {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #333;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Download Section */
.download {
  background: linear-gradient(135deg, #0f3460 0%, #0a0a0a 100%);
}

.download-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.download-info h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.download-features {
  margin-bottom: 2rem;
}

.download-features li {
  color: #ccc;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.download-stats {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.download-stats p {
  color: #ccc;
  margin-bottom: 0.5rem;
}

.download-stats span {
  color: #ff6b35;
  font-weight: bold;
}

.download-action {
  text-align: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
}

.download-icon {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

.download-note {
  color: #888;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .races-grid {
    grid-template-columns: 1fr;
  }
  
  .download-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gameplay-grid {
    grid-template-columns: 1fr;
  }
  
  .commands-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
