/*****************analyzer Grid Card List***********/

.analyst-vertical-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 20px;
  max-width: 250px;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 350px;
  justify-content: space-between;
}

.analyst-vertical-card .header {
  display: flex;
  align-items: center;
  gap: 5px;
}

.analyst-vertical-card .profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.analyst-vertical-card .username-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.analyst-vertical-card .username {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  color: #111;
  font-family: 'Nunito';
}

.analyst-vertical-card .platform-logo {
    width: 23px;
    height: 23px;
}

.analyst-vertical-card .platform-logo img {
    width: 20px;
}

.analyst-vertical-card .stats {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-around;
  gap: 15px;
}

.analyst-vertical-card .actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  align-content: center;
  flex-direction: row;
  background: #eeeeee4d;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-family: 'Numans';
}

.analyst-vertical-card .actions p{
  margin-bottom:0;
}

.analyst-vertical-card .gauge {
  --max: 100;
  --value: 100;
  --angle: 265;
  width: 200px;
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  margin: auto;
}

.analyst-vertical-card .gauge svg {
  transform: rotate(-90deg);
}

.analyst-vertical-card .gauge circle {
  fill: none;
  stroke-width: 8px;
  r: 80;
  cx: 100;
  cy: 100;
  stroke-linecap: round;
}

.analyst-vertical-card .gauge .bg {
  stroke: #eee;
  stroke-dasharray: calc(2 * 3.1416 * 80 * (var(--angle) / 360));
  stroke-dashoffset: 0;
}

.analyst-vertical-card .gauge .progress {
  stroke: url(#gradient);
  stroke-dasharray: calc(2 * 3.1416 * 80 * (var(--angle) / 360));
  stroke-dashoffset: calc(
    calc(2 * 3.1416 * 80 * (var(--angle) / 360)) -
    calc(2 * 3.1416 * 80 * (var(--angle) / 360) * var(--value) / var(--max))
  );
  transition: stroke-dashoffset 0.5s ease;
}

.analyst-vertical-card .gauge .value {
  position: absolute;
  font-size: 28px;
  z-index: 1;
  font-weight: 100;
}

.analyst-vertical-card .gauge .label {
  position: absolute;
  top: 64%;
  text-align: center;
  font-size: 16px;
  color: #444;
  width: 100%;
  font-weight: 100;
}

.analyst-vertical-card .field--name-field-analyzer-name {
    margin: 0;
    max-width: 150px;
    text-wrap-mode: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-analyzer-list .view-content .views-infinite-scroll-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    justify-items: center;
    margin-top: 25px;
}

.view-analyzer-top-5-score .view-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    justify-items: center;
    margin-top: 25px;
}

.view-analyzer-top-5-score .views-row {
    width: 250px;
}

.analyst-vertical-card .field--name-field-analyzer-score {
    font-weight: 400;
    color: #505050;
}

.analyst-vertical-card .score {
    font-weight: 400;
    color: #6f6f6f;
    margin-bottom: 0;
}

.analyst-vertical-card .total {
    color: #6f6f6f;
}

.analyst-vertical-card .field--name-field-total-analysis {
    color: #505050;
}

.analyst-vertical-card .success-section {
  margin-bottom: 10px;
  text-align: center;
}

.analyst-vertical-card .success-label {
  font-size: 16px;
  color: #444;
  font-weight: 100;
  /* font-family: 'Nunito'; */
}

.analyst-vertical-card .progress-bar {
  position: relative;
  width: 100%;
  background: #eee;
  height: 5px;
  border-radius: 20px;
  overflow: hidden;
}

.analyst-vertical-card .progress-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.5s ease;
}
.progress-bad {
  background: linear-gradient(to right, #f44336, #e53935);
}

.progress-ok {
  background: linear-gradient(to right, #ff9800, #fb8c00);
}

.progress-good {
  background: linear-gradient(to right, #8bc34a, #689f38);
}

.progress-great {
  background: linear-gradient(to right, #4caf50, #00c853);
}

.analyst-vertical-card .progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  pointer-events: none;
}

/*********************Top Analyzer Grid Card Side Bar*************/
.analyst-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 16px;
  padding: 16px 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  max-width: 420px;
  margin: 3px auto;
  font-family: 'Numans';
  transition: transform 0.2s ease;
}

.analyst-card .profile-section {
  display: flex;
  align-items: center;
  width: 100%;
}

.analyst-card .profile-pic {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2px;
  border: 5px solid #f5f5f5;
  background: #f5f5f5;
}

.analyst-card .info {
  flex: 1;           /* فضای باقی‌مونده رو پر کنه */
  min-width: 0;      /* خیلی مهم برای ellipsis */
}

.analyst-card .username {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1e1e1e;
  height: 25px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analyst-card .quality-label {
  font-size: 14px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 0;
}

.analyst-card .score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  min-width: 68px;
}

.analyst-card .social-icon {
  width: 20px;
  height: 25px;
  position: absolute;
  margin-left: 25px;
  margin-top: 65px;
}

.analyst-card .score {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.analyst-card .field--name-field-analyzer-name {
    font-weight: 700;
    font-size: 16px;
    color: #1e293be0;
    margin: 0;
    width: auto;
    text-overflow: ellipsis;
    overflow: hidden;
    font-family: 'Nunito';
}

/*********************Analyzer Card Overview**************/
.analyst-vertical-card-overview {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  padding: 20px;
  max-width: 320px;
  margin: 0px auto 20px;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Numans';
}

.analyst-vertical-card-overview .header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-pic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.analyst-vertical-card-overview .username-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.analyst-vertical-card-overview .username {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #1e1e1e;
}

.analyst-vertical-card-overview .social-icon {
  width: 24px;
  height: 24px;
  margin-top: 6px;
}

.analyst-vertical-card-overview .stats {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.analyst-vertical-card-overview .actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Nunito';
}

.analyst-vertical-card-overview .btn {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  flex: 1;
}

.analyst-vertical-card-overview .btn-primary {
  background-color: #2563eb;
  color: white;
}

.analyst-vertical-card-overview .btn-secondary {
  background-color: #f3f4f6;
  color: #333;
}

.analyst-vertical-card-overview .stats-detail {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.analyst-vertical-card-overview .stats-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    align-items: stretch;
    gap: 5px;
}

.analyst-vertical-card-overview .status {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block;
  width: fit-content;
  width: 100px;
  font-family: Helvetica;
}

.analyst-vertical-card-overview .stats-bottom .field--label-inline > .field__item {
    padding: 0;
}

.analyst-vertical-card-overview .stats-bottom .field {
    display: flex;
    justify-content: center;
}