/* Topluluk sayfası özel stilleri */
.page-topluluk .page-header {
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.18), transparent 45%),
    linear-gradient(135deg, #1a1d26 0%, #151821 100%);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 28px;
  padding: 56px 36px;
  margin-bottom: 40px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.page-topluluk .stats-row {
  gap: 16px;
  margin-bottom: 36px;
}

.page-topluluk .stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 18px;
  transition: all 0.25s ease;
}

.page-topluluk .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.page-topluluk .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  border-color: rgba(34, 197, 94, 0.25);
}

.page-topluluk .stat-value {
  font-size: 1.9rem;
}

.page-topluluk .join-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-bottom: 36px;
}

.page-topluluk .join-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 10px;
  transition: all 0.25s ease;
}

.page-topluluk .join-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.page-topluluk .join-card .join-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.page-topluluk .join-card .card-btn {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.page-topluluk .community-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.page-topluluk .community-side {
  position: sticky;
  top: 88px;
}

.page-topluluk .community-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.05));
  border: 1px dashed rgba(34, 197, 94, 0.25);
  border-radius: 18px;
  padding: 24px;
  margin-top: 32px;
}

.page-topluluk .community-banner h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.page-topluluk .community-banner p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.page-topluluk .leaderboard-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.page-topluluk .leaderboard {
  margin: 0;
}

.page-topluluk .leaderboard th {
  background: rgba(17, 19, 28, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
  padding: 16px;
}

.page-topluluk .leaderboard td {
  padding: 16px;
}

.page-topluluk .leaderboard tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.page-topluluk .rank {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
}

.page-topluluk .rank-1 {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #000;
}

.page-topluluk .rank-2 {
  background: #94a3b8;
  color: #000;
}

.page-topluluk .rank-3 {
  background: #b45309;
  color: #fff;
}

.page-topluluk .activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-topluluk .activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.page-topluluk .activity-item:hover {
  border-color: rgba(238, 41, 81, 0.2);
  transform: translateX(3px);
}

.page-topluluk .activity-item i {
  width: 20px;
  text-align: center;
}

@media (max-width: 1024px) {
  .page-topluluk .community-grid {
    grid-template-columns: 1fr;
  }
  .page-topluluk .community-side {
    position: static;
  }
  .page-topluluk .community-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
