/* Social Media Stats for Card Back */
.social-stats-container {
  padding: 8px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  box-sizing: border-box;
}

.stats-title {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.2;
}

.social-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 6px;
  margin-bottom: 8px;
  max-height: 180px;
  overflow: hidden;
}

@media (max-width: 767px) {
  .social-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    max-height: 120px;
  }

  .social-stats-container {
    padding: 6px;
  }

  .stats-title {
    margin-bottom: 6px;
    font-size: 0.8rem;
  }
}

.social-stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.social-stat-item:hover {
  transform: translateY(-1px);
}

.progress-circle {
  position: relative;
  width: 28px;
  height: 28px;
  margin-bottom: 1px;
}

@media (max-width: 767px) {
  .progress-circle {
    width: 24px;
    height: 24px;
    margin-bottom: 1px;
  }

  .social-stat-item {
    padding: 1px;
  }
}

.progress-circle svg {
  width: 100%;
  height: 100%;
}

.progress-circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 4;
}

.progress-circle-value {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.8s ease;
}

.platform-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .platform-icon {
    width: 18px;
    height: 18px;
  }
}

.platform-icon svg {
  width: 100%;
  height: 100%;
}

.follower-count {
  font-weight: 600;
  font-size: 0.6rem;
  margin-top: 1px;
  line-height: 1;
}

.total-reach {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #333;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: inline-block;
  margin: 0 auto;
  line-height: 1.2;
}

/* Team info styling */
.team-info {
  margin-top: 4px;
  padding: 0 3px;
  max-height: 80px;
  overflow: hidden;
}

.team-item {
  margin-bottom: 1px;
  font-size: 0.65rem;
  line-height: 1.2;
}

.team-item span {
  font-size: 0.65rem !important;
}

.team-item img {
  width: 16px !important;
  height: 16px !important;
  margin-right: 4px !important;
}

@media (max-width: 767px) {
  .follower-count {
    font-size: 0.55rem;
  }

  .total-reach {
    font-size: 0.65rem;
    padding: 2px 6px;
    margin-top: 3px;
  }

  .team-info {
    margin-top: 3px;
    padding: 0 2px;
    max-height: 60px;
  }

  .team-item {
    margin-bottom: 1px;
    font-size: 0.6rem;
  }

  .team-item span {
    font-size: 0.6rem !important;
  }

  .team-item img {
    width: 14px !important;
    height: 14px !important;
    margin-right: 3px !important;
  }
}

/* Platform specific colors */
.instagram {
  background: linear-gradient(45deg, rgba(255, 220, 128, 0.2), rgba(194, 31, 141, 0.2), rgba(64, 93, 230, 0.2));
}
.instagram .progress-circle-value {
  stroke: #C13584;
}

.twitter {
  background: rgba(29, 161, 242, 0.1);
}
.twitter .progress-circle-value {
  stroke: #1DA1F2;
}

.tiktok {
  background: linear-gradient(45deg, rgba(238, 29, 82, 0.1), rgba(0, 0, 0, 0.1));
}
.tiktok .progress-circle-value {
  stroke: #EE1D52;
}

.facebook {
  background: rgba(66, 103, 178, 0.1);
}
.facebook .progress-circle-value {
  stroke: #4267B2;
}

.linkedin {
  background: rgba(0, 119, 181, 0.1);
}
.linkedin .progress-circle-value {
  stroke: #0077B5;
}

.youtube {
  background: rgba(255, 0, 0, 0.1);
}
.youtube .progress-circle-value {
  stroke: #FF0000;
}

.twitch {
  background: rgba(100, 65, 165, 0.1);
}
.twitch .progress-circle-value {
  stroke: #6441A5;
}
