/* ===============================
   COMMUNITY STATS STICKY NOTE
   Matches platform-stats-note design
   =============================== */

.community-stats-note {
  width: 260px;
  padding: 14px 16px 16px;
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d4 100%);
  border-radius: 8px;
  border: 1px solid rgba(252, 115, 6, 0.15);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.12),
    inset 0 -6px 10px rgba(0,0,0,0.04);
  transform: rotate(-1deg);
  line-height: 1.4;
  color: #2a2a2a;
  font-size: 13px;
}

/* Desktop: Positioned in quick-access-zone */
@media (min-width: 1025px) {
  .community-stats-note {
    position: absolute;
    right: 100%;
    top: -30px; /* Position slightly higher */
    margin-right: 24px;
    /* No max-height/scroll - everything visible at once */
  }
}

/* Larger screens: More gap */
@media (min-width: 1400px) {
  .community-stats-note {
    margin-right: 32px;
  }
}

@media (min-width: 1600px) {
  .community-stats-note {
    margin-right: 40px;
  }
}

/* Tablet: Hide */
@media (min-width: 768px) and (max-width: 1024px) {
  .community-stats-note {
    display: none !important;
  }
}

/* Mobile: Full width card below content */
@media (max-width: 767px) {
  .community-stats-note {
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto;
    transform: rotate(0);
  }
}

/* ===============================
   HEADER
   =============================== */
.community-stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(252, 115, 6, 0.3);
}

.community-stats-icon {
  font-size: 1.1rem;
}

.community-stats-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2933;
  margin: 0;
}

/* ===============================
   STAT LINES
   =============================== */
.cs-stat-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}

.cs-stat-line + .cs-stat-line {
  margin-top: 1px;
}

.cs-stat-icon {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.cs-stat-value {
  font-weight: 700;
  color: #1a365d;
  min-width: 50px;
}

.cs-stat-label {
  font-size: 12px;
  color: #4a5568;
  flex: 1;
}

/* Highlight style for key stats */
.cs-stat-line.highlight .cs-stat-value {
  color: #fc7306;
  font-size: 15px;
}

/* ===============================
   DIVIDERS
   =============================== */
.cs-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 6px 0; /* Tighter spacing */
}

/* ===============================
   SECTION HEADERS (subtle)
   =============================== */
.cs-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 6px 0 4px;
}

/* ===============================
   STAGES GRID (3 columns for compact view)
   =============================== */
.cs-stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 8px;
  margin-top: 4px;
}

.cs-stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  text-align: center;
}

.cs-stage-icon {
  font-size: 0.9rem;
}

.cs-stage-value {
  font-weight: 600;
  color: #1a365d;
}

.cs-stage-name {
  color: #4a5568;
}

/* ===============================
   FOOTER / LINKS
   =============================== */
.cs-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(252, 115, 6, 0.3);
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cs-view-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #fc7306;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cs-view-more:hover {
  color: #e56600;
  gap: 6px;
}

.cs-view-more-arrow {
  transition: transform 0.2s ease;
}

.cs-view-more:hover .cs-view-more-arrow {
  transform: translateX(2px);
}

/* ===============================
   LOADING STATE
   =============================== */
.cs-loading {
  text-align: center;
  padding: 20px;
  color: #718096;
  font-size: 12px;
}

.cs-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(252, 115, 6, 0.2);
  border-top-color: #fc7306;
  border-radius: 50%;
  animation: cs-spin 0.8s linear infinite;
  margin: 0 auto 8px;
}

@keyframes cs-spin {
  to { transform: rotate(360deg); }
}

/* ===============================
   ERROR STATE
   =============================== */
.cs-error {
  text-align: center;
  padding: 16px;
  color: #e53e3e;
  font-size: 12px;
}

/* ===============================
   CACHE INDICATOR (subtle)
   =============================== */
.cs-cache-indicator {
  font-size: 10px;
  color: #a0aec0;
  text-align: right;
  margin-top: 8px;
}
