/* 커뮤니티 스탯박스 스타일 */
.community-stats-box {
  margin-bottom: 2rem;
}

/* 타이틀 헤더 스타일 (실시간 주간기록과 동일한 형식) */
.community-stats-box .ranking-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

@media (min-width: 768px) {
  .community-stats-box .ranking-header {
    flex-direction: row;
    align-items: center;
  }
}

.community-stats-box .title-container {
  display: flex;
  align-items: center;
}

.community-stats-box .title-accent {
  width: 0.375rem;
  height: 2rem;
  background-color: #db2777;
  border-radius: 9999px;
  margin-right: 0.75rem;
}

.community-stats-box .ranking-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.community-stats-box .ranking-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.community-stats-box .update-time {
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.community-stats-box .update-indicator {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #10b981;
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.stats-container {
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(to right, rgba(252, 231, 243, 0.3), rgba(255, 255, 255, 1));
  border: 1px solid rgba(249, 168, 212, 0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

/* 반응형 그리드 */
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat-card {
  background-color: white;
  padding: 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid #ec4899; /* 기본 핑크 색상 */
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 각 카드별 상단 테두리 색상 */
.stat-card.profit-rate {
  border-top-color: #ec4899; /* 핑크 400 */
}

.stat-card.strategy {
  border-top-color: #db2777; /* 핑크 500 */
}

.stat-card.team {
  border-top-color: #be185d; /* 핑크 600 */
}

.stat-card.weekly-prize {
  border-top-color: #9d174d; /* 핑크 700 */
}

.stat-card.total-prize {
  border-top-color: #831843; /* 핑크 800 */
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(249, 168, 212, 0.2);
}

.stat-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stat-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937; /* 그레이 800 */
  margin-bottom: 0.5rem;
}

.stat-value {
  margin-top: auto;
}

.number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #db2777; /* 핑크 600 */
}

.unit {
  font-size: 0.875rem;
  color: #6b7280; /* 그레이 500 */
  margin-left: 0.25rem;
}


