/* ts:1765530526085 */
:root {
  --primary-color: #0f172a;
  --card-bg: #1e293b;
  --text-color: #f8fafc;
  --secondary-color: #06b6d4;
  --secondary-color-light: #22d3ee;
  --accent-color: #38bdf8;
  --neon-green: #39ff14;
  --neon-red: #ff3333;
}

.main-content {
  gap: 2rem;
}

/* بخش اطلاعات بازیکن */
.player-info {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02),
    0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-info:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.player-info:hover i {
  color: var(--secondary-color);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.player-info i {
  font-size: 60px;
  color: var(--secondary-color-light);
  flex-shrink: 0;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.player-details {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  /* تقسیم مساوی */
  width: 100%;
}

.player-details span::after {
  content: "|";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.player-details span {
  position: relative;
  padding: 0 12px;
  /* فاصله متقارن از دو طرف */
  color: #ccc;
  font-size: 1.05rem;
}

.player-details span strong {
  color: #fff;
  font-weight: 600;
  margin-left: 5px;
}

/* کارت ها */
.cards {
  display: flex;
  gap: 16px;
  margin: 20px 0px;
}

.card {
  flex: 1;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  margin: 20px 20px;
  text-align: center;
}

.card-past {
  flex: 1;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 8px;
  align-content: center;
  text-align: center;
}

.progress-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 8;
  cx: 40;
  cy: 40;
  r: 32;
  transition: stroke-dashoffset 0.8s ease, stroke 0.8s ease;
}

.progress-circle .bg {
  stroke-width: 8;
}

.progress-circle .fill {
  stroke: url(#gradient); /* استفاده از گرادیان */
  stroke-dasharray: 201;
  stroke-dashoffset: 201;
  stroke-linecap: round; /* انتهای دایره گرد */
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

/* گرادیان داخل SVG */
.progress-circle svg defs linearGradient {
  stop-color: #ff0000; /* قرمز */
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
}

.label {
  margin-top: 5px;
  font-size: 14px;
}

/* جدول جلسات */
.table-wrapper {
  background: var(--card-bg);
  padding: 20px;
  margin: 20px 0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-wrapper h2 {
  color: var(--secondary-color);
  margin-bottom: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #334155;
}

th {
  background: var(--primary-color);
  font-weight: 600;
}

tr:hover td {
  background: #1e293b;
  border-radius: 8px;
}

/* ======= ریسپانسیو سازی ======= */

/* حالت تبلت (عرض کمتر از 992px) */
@media (max-width: 992px) {
  .player-info {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 12px;
  }

  .player-info i {
    font-size: 48px;
  }



  .cards {
    /* flex-wrap: wrap; */
    justify-content: center;
    margin: 20px 0px;
  }

  table {
    font-size: 0.95rem;
  }

  th,
  td {
    padding: 10px;
  }
}

/* حالت موبایل (عرض کمتر از 600px) */
@media (max-width: 600px) {
  .player-info {
    flex-direction: column;
    padding: 16px;
  }

  .player-info i {
    font-size: 40px;
  }

  .player-details span {
    display: block;
    padding: 6px 0;
    font-size: 0.95rem;
  }
  .player-details {
    flex-direction: column;
    gap: 8px;
  }
  .cards {
    /* flex-direction: column; */
    align-items: center;
  }
  .card,
  .card-past {
    flex: 1 1 45%;
    /* margin: 10px; */
  }
  .card {
    width: 90%;
    margin: 10px 0;
  }

  .table-wrapper {
    padding: 12px;
    border-radius: 10px;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 10px;
  }

  td {
    text-align: right;
    padding: 8px 10px;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    right: 10px;
    top: 8px;
    font-weight: 600;
    color: var(--secondary-color-light);
  }
}

@media (max-width: 600px) {
  .cards {
    flex-wrap: wrap;
    align-items: center;
    gap: 0px;
  }

  .cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .card-past {
    order: 3;
  }
}
