/* Difficulty Modes Section Styles */
.difficulty-modes-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #d67412c5 0%, #964b00c5 100%), url("../../images/games/image-10.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.modes-header {
  text-align: center;
  margin-bottom: 60px;
}

.modes-title {
  font-family: var(--font-primary-bold);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.modes-subtitle {
  font-family: var(--font-secondary);
  font-size: 18px;
  line-height: 1.5;
  max-width: 1122px;
  margin: 0 auto;
  color: var(--white);
}

.modes-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.mode-card {
  background: #FF8E1B;
  border: 2px solid rgba(255, 192, 140, 0.8);
  border-radius: 18px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 2px 4px 10px 0px rgba(0, 0, 0, 0.13), 
              8px 8px 4px 0px inset rgba(255, 169, 70, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-icon {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 150px;
}

.card-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 120px;
  background: url("../../images/ui/t-l-chargement-2025-09-10-t-131710-318-10.png") no-repeat center / contain;
  opacity: 1;
}

.card-icon img {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  height: 55px;
  width: auto;
  object-fit: contain;
}

/* Rotate carrot per card to match design */
.modes-container .mode-card:nth-child(1) .card-icon img { /* Easy */
  transform: translateX(-50%) rotate(63deg);
}
.modes-container .mode-card:nth-child(2) .card-icon img { /* Medium */
  transform: translateX(-50%) rotate(113deg);
}
.modes-container .mode-card:nth-child(3) .card-icon img { /* Hard */
  transform: translateX(-50%) rotate(165deg);
}
.modes-container .mode-card:nth-child(4) .card-icon img { /* Hardcore */
  transform: translateX(-50%) rotate(226deg);
}

.card-title {
  font-family: var(--font-primary-bold);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white);
}

.card-description {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.5;
  color: rgba(244, 244, 244, 0.95);
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .modes-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .difficulty-modes-section {
    padding: 40px 20px;
  }
  .modes-container {
    grid-template-columns: 1fr;
  }
}
