/* ts:1765530526085 */
:root {
  --primary-color: #0f172a;
  --primary-color-light: #1e293b;
  --secondary-color: #06b6d4;
  --secondary-color-light: #22d3ee;
  --accent-color: #38bdf8;
  --card-bg: #1e293b;
  --card-hover-bg: #334155;
  --text-color: #f8fafc;
  --muted-text: #94a3b8;
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
  --cta-border-radius: 14px;
  --navbar-height: 48px;
  --neon-green: #39ff14;
  --neon-red: #ff3333;
}

/* --- بازیکنان --- */
.player-section {
  /* width: 100%; */
  margin: 10px;
  background: var(--card-bg);
  border-radius: var(--cta-border-radius);
  padding: 1rem 0.8rem;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.player-section .player-header {
  position: relative;
  display: inline-block; /* تا نوار فقط به اندازه متن باشد */
  font-size: 1.6em;
  color: var(--secondary-color-light);
  margin-bottom: 16px;
}

.player-section .player-header::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -4px;
  height: 4px;
  width: 150%;
  background: var(--secondary-color);
  border-radius: 2px;
}

.player-slider {
  width: 100%;
  padding: 0.5rem 0rem;
  overflow: hidden;
  position: relative;
}

.player-track {
  display: flex;
  gap: 0.8rem;
  transition: transform 0.6s ease;
}

.player-card {
  flex: 0 0 20%;
  background: var(--card-hover-bg);
  border-radius: 0.8rem;
  padding: 0.8rem 0.5rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

.player-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.5rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.player-card:hover .player-icon {
  transform: scale(1.08);
}

.player-name {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
}
.player-position {
  font-size: 0.7rem;
  color: var(--muted-text);
}
/* --- ریسپانسیو --- */
@media (max-width: 992px) {
  .player-card {
    flex: 0 0 20%;
  }
  .player-header {
    font-size: 1rem;
  }
  .player-section .player-header {
    font-size: 1.4em;
  }
  .player-section .player-header::after {
    left: -35px;
  }
}

@media (max-width: 768px) {
  .player-card {
    flex: 0 0 20%;
  }
  .player-icon {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .player-name {
    font-size: 0.82rem;
  }
}

@media (max-width: 530px) {
  .player-card {
    flex: 0 0 30%;
  }
  .player-name {
    font-size: 0.82rem;
  }
}
@media (max-width: 480px) {
  .player-track {
    gap: 0.6rem;
  }
  .player-card {
    flex: 0 0 35%;
    padding: 0.6rem 0.4rem;
  }
  .player-section .player-header {
    font-size: 0.8em;
  }
  .player-section .player-header::after {
    left: -15px;
  }
  .player-icon {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }
  .player-header {
    font-size: 0.95rem;
  }
  .player-name {
    font-size: 0.8rem;
  }
}

/*  کارت ها راست */

.card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 6px;
  text-align: center;
}

.card-past {
  flex: 1;
  background: var(--card-bg);
  padding: 10px;
  border-radius: 6px;
  align-content: center;
  text-align: center;
}

.progress-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  position: relative;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle circle {
  fill: none;
  stroke-width: 6;
  cx: 30;
  cy: 30;
  r: 24;
  transition: stroke-dashoffset 0.8s ease, stroke 0.8s ease;
}

.progress-circle .bg {
  stroke-width: 6;
}

.progress-circle .fill {
  stroke: url(#gradient);
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.3));
}

.progress-circle svg defs linearGradient {
  stop-color: #ff0000;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

.label {
  margin-top: 3px;
  color: var(--secondary-color-light);
  font-size: 13px;
}

.label-player {
  margin-top: 3px;
  font-size: 14px;
  font-weight: bold;
}

/* layout اصلی */
.main-layout {
  display: flex;
  gap: 1rem;
  margin: 10px;
  padding: 1rem 0;
  color: var(--text-color);
}

/* ستون راست با دو کارت */
.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* کارت‌های کوچک سمت راست */
.small-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: var(--cta-border-radius);
  box-shadow: var(--card-shadow);
  align-content: center;
  padding: 0.75rem;
  transition: var(--transition);
}
/* کارت بزرگ سمت چپ */
.left-card {
  flex: 2;
  background: var(--card-bg);
  border-radius: var(--cta-border-radius);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  transition: var(--transition);
  color: var(--text-color);
  display: flex;
  /* height: 00px; */
  flex-direction: column;
  align-items: center;
}

.chart-title {
  font-size: rem;
  margin-bottom: 30px;
  /* padding: 10px; */
  /* background-color: var(--accent-color); */
  /* border-radius: 15px; */
  color: var(--accent-color);
  text-align: center;
}

.bar-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  width: 100%;
  height: 300px;

  padding: 5px 0;
  direction: ltr;
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 28px;
  height: 100%;
}

.bar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  /* ارتفاع ثابت برای همه */
}

.bar-inner {
  width: 80%;
  border-radius: 6px 6px 0 0;
  transition: var(--transition);
}

.bar-label {
  margin-top: 4px;
  font-size: 0.7rem;
  color: var(--muted-text);
}

/* 🔹 برچسب تاریخ زیر باکس و با ارتفاع ثابت */
.bar-label-date {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 50px; /* ارتفاع یکسان برای همه */
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--muted-text);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  white-space: nowrap;
}

.bar-change {
  font-size: 0.65rem;
  color: var(--accent-color);
  margin-bottom: 2px;
}

.left-card > div {
  display: flex;
  gap: 10px;
  width: 100%;
  align-items: flex-start;
  /* height: 150px; */
  direction: ltr;
}

.bar-chart {
  flex: 1;
}
.info {
  height: 100%;
  width: 45%;
  align-content: center;
}
.count {
  margin-top: 25px;
}
.label-count {
  margin-top: 3px;
  font-size: 18px;
  font-weight: bold;
}

/* برای حالت موبایل */
@media (max-width: 768px) {
  .main-layout {
    display: flex;
    flex-direction: column-reverse;
  }
  .right-column {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .left-card > div {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
    height: 100%;
    direction: ltr;
  }
  .bar-chart {
    width: 100%;
    height: 100%;
  }
  .bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    width: 25px;
    height: 100;
  }
  .info {
    height: 200px;
    width: 45%;
    align-content: center;
  }
}
@media (max-width: 568px) {
  .left-card > div {
    display: flex;
    gap: 10px;
    width: 100%;
    height: 100%;
    direction: ltr;
    flex-direction: column;
  }
  .info {
    height: 200px;
    width: 100%;
    align-content: center;
  }
}
@media (max-width: 420px) {
  .bar-inner {
    width: 40%;
    border-radius: 6px 6px 0 0;
    transition: var(--transition);
  }
}
@media (max-width: 420px) {
  .chart-title {
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 6px;
  }

  .bar-chart {
    /* gap: 6px; */
    padding: 2px 0;
  }
  .main-content {
    padding: 0;
  }
  .bar {
    /* width: 18px; */
  }

  .bar-box {
    height: 120px;
  }

  .bar-inner {
    border-radius: 4px 4px 0 0;
  }

  .bar-label {
    font-size: 0.55rem;
  }
  .bar-change {
    font-size: 0.55rem;
    color: var(--accent-color);
    margin-bottom: 2px;
  }
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slides-wrapper {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

/* دات‌ها */
.slider-dots {
  text-align: center;
  margin-top: 10px;
}

.slider-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: var(--card-bg);
  border-radius: 50%;
  cursor: pointer;
}

.slider-dot.active {
  background-color: var(--accent-color);
}
