/* Races page specific styles */

.races-hero {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 70px;
  overflow: hidden;
}

.races-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--norse-blue) 0%, var(--greek-gold) 50%, var(--egyptian-blue) 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.races-hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.races-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.races-hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.races-hero-content p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* Races Main Section */
.races-main {
  padding: 5rem 0;
  background: var(--primary-light);
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #555;
}

.culture-section {
  margin-bottom: 5rem;
}

.culture-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.culture-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.culture-section.norse .culture-icon {
  background: var(--gradient-norse);
  color: white;
}

.culture-section.greek .culture-icon {
  background: var(--gradient-greek);
  color: white;
}

.culture-section.egyptian .culture-icon {
  background: var(--gradient-egyptian);
  color: white;
}

.culture-header h2 {
  font-size: 2.5rem;
  color: var(--primary-dark);
}

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

.race-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.race-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.culture-section.norse .race-card::before {
  background: var(--gradient-norse);
}

.culture-section.greek .race-card::before {
  background: var(--gradient-greek);
}

.culture-section.egyptian .race-card::before {
  background: var(--gradient-egyptian);
}

.race-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.race-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.race-header h3 {
  color: var(--primary-dark);
  font-size: 1.8rem;
}

.race-homeland {
  background: var(--primary-dark);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.race-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.race-traits,
.race-stats,
.race-abilities {
  margin-bottom: 1.5rem;
}

.race-traits h4,
.race-stats h4,
.race-abilities h4 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.race-traits i,
.race-stats i,
.race-abilities i {
  color: var(--primary-gold);
}

.traits-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trait-tag {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #e0e0e0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--primary-light);
  border-radius: 8px;
}

.stat-name {
  color: #666;
  font-weight: 500;
}

.stat-value {
  font-weight: 700;
  font-size: 1.1rem;
}

.stat-value:contains("+") {
  color: #4caf50;
}

.stat-item:has(.stat-value:contains("-")) .stat-value {
  color: #f44336;
}

.race-abilities ul {
  list-style: none;
  padding: 0;
}

.race-abilities li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.race-abilities li::before {
  content: "⚔️";
  position: absolute;
  left: 0;
}

.race-abilities strong {
  color: var(--primary-gold);
}

/* Culture Lore */
.culture-lore {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
}

.culture-lore h3 {
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.culture-lore i {
  color: var(--primary-gold);
}

.culture-lore p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Tips Section */
.races-tips {
  margin-top: 4rem;
  text-align: center;
}

.races-tips h2 {
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

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

.tip-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  border-top: 4px solid var(--primary-gold);
}

.tip-card h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.tip-card p {
  color: #666;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .races-hero-content h1 {
    font-size: 2rem;
  }

  .culture-header {
    flex-direction: column;
    text-align: center;
  }

  .races-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .race-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }
}
