/* ============================
   Duels Page
   ============================ */

.duels {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ============================
   Header
   ============================ */

.duels__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.duels__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.duels__title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 28px;
  line-height: 30px;
  color: #7b3a10;
  margin: 0;
}

.duels__subtitle {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22.5px;
  color: #a78d7c;
  margin: 0;
}

.duels__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(166deg, #e07b20 0%, #d4922a 100%);
  box-shadow: 0 4px 12px rgba(200, 106, 0, 0.2);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 22.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.duels__cta:hover { opacity: 0.92; }
.duels__cta svg { flex-shrink: 0; }

/* ============================
   Stats
   ============================ */

.duels__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.duels__stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(123, 58, 16, 0.06);
}

.duels__stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.duels__stat-icon--amber { background: rgba(212, 132, 42, 0.12); }
.duels__stat-icon--teal { background: rgba(42, 155, 155, 0.1); }
.duels__stat-icon--orange { background: rgba(200, 106, 0, 0.08); }
.duels__stat-icon--brown { background: rgba(123, 58, 16, 0.08); }

.duels__stat-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.duels__stat-value {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 22px;
  line-height: 22px;
  color: #7b3a10;
}

.duels__stat-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 16.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #a78d7c;
}

/* ============================
   Tabs
   ============================ */

.duels__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duels__tab {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 20px;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #a78d7c;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.duels__tab:hover {
  background: rgba(212, 146, 42, 0.08);
}

.duels__tab--active {
  background: linear-gradient(166deg, #e07b20 0%, #d4922a 100%);
  color: #fff;
}

.duels__tab--active:hover {
  background: linear-gradient(166deg, #e07b20 0%, #d4922a 100%);
}

.duels__tab-count {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
}

.duels__tab--active .duels__tab-count {
  opacity: 1;
}

/* ============================
   Duel Cards Grid
   ============================ */

.duels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- Card --- */
.duels__card {
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(123, 58, 16, 0.06);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Status Badge --- */
.duels__card-status {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 6px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 10px;
  line-height: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.duels__card-status--planifie {
  background: rgba(153, 153, 153, 0.08);
  color: #999;
}

.duels__card-status--termine {
  background: rgba(224, 123, 32, 0.08);
  border: 1px solid rgba(224, 123, 32, 0.2);
  color: #e07b20;
}

/* --- Matchup --- */
.duels__matchup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F7F3EF;
  padding: 6px 16px;
  border-radius: 8px;
}

.duels__team {
  display: flex;
  align-items: center;
  gap: 6px;
}

.duels__team--right {
  flex-direction: row;
}

.duels__team-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.duels__team-dot--red { background: #e74c3c; }
.duels__team-dot--blue { background: #3498db; }
.duels__team-dot--green { background: #28a745; }

.duels__team-name {
  font-family: 'Baloo 2', cursive;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  color: #7b3a10;
}

.duels__team-trophy {
  font-size: 12px;
}

.duels__scores {
  display: flex;
  align-items: center;
  gap: 8px;
}

.duels__score {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: #e07b20;
}

/* --- Exercise --- */
.duels__card-exercise {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 19.5px;
  color: #a78d7c;
  margin: 0;
}

.duels__card-exercise-icon {
  width: 14px;
  height: 14px;
}

/* --- Info Row --- */
.duels__card-info {
  display: flex;
  gap: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: #bbb;
}

.duels__card-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.duels__card-info-icon {
  width: 14px;
  height: 14px;
}

/* --- Footer --- */
.duels__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f0e6d8;
}

.duels__launch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #28a745 0%, #34c759 100%);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.duels__launch-btn:hover { opacity: 0.9; }
.duels__launch-btn svg { flex-shrink: 0; }

.duels__card-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.duels__card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.duels__card-action:hover {
  background: #f7f3ef;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 1200px) {
  .duels__stats { grid-template-columns: repeat(2, 1fr); }
  .duels__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .duels__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .duels__stats { grid-template-columns: 1fr; }
  .duels__grid { grid-template-columns: 1fr; }
  .duels__tabs { flex-wrap: wrap; }
}
