/**
 * Comunidade Discord — BRUXÃO MENU
 * Card premium com contagem ao vivo (API pública de convite)
 */

.dc-section {
  --dc-blurple: #5865f2;
  --dc-blurple-glow: rgb(88 101 242 / 0.45);
  --dc-online: #23a559;
  position: relative;
  padding: 2.5rem 0 3rem;
}

.dc-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgb(88 101 242 / 0.1), transparent 60%),
    linear-gradient(180deg, transparent, rgb(var(--background) / 0.35));
  border-top: 1px solid rgb(var(--border));
}

.dc-section__inner {
  position: relative;
  z-index: 1;
}

.dc-section__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.dc-section__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: "Kanit", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  text-shadow: 0 0 24px var(--dc-blurple-glow);
}

.dc-section__title-icon {
  color: var(--dc-blurple);
  filter: drop-shadow(0 0 10px var(--dc-blurple-glow));
}

.dc-section__lead {
  margin: 0.65rem auto 0;
  max-width: 34rem;
  font-size: 0.92rem;
  color: rgb(var(--muted-foreground));
}

.dc-card {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1px;
  border-radius: 1rem;
  background: linear-gradient(
    135deg,
    rgb(88 101 242 / 0.55),
    hsl(var(--primary) / 0.35),
    rgb(88 101 242 / 0.4)
  );
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.05),
    0 12px 40px rgb(0 0 0 / 0.35),
    0 0 32px rgb(88 101 242 / 0.12);
}

.dc-card__glow {
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 0 40px rgb(88 101 242 / 0.18);
  opacity: 0.7;
}

.dc-card__main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: calc(1rem - 1px);
  background: rgb(var(--muted-solid) / 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

@media (min-width: 640px) {
  .dc-card__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.35rem 1.5rem 1.15rem;
  }
}

.dc-card__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.dc-card__icon-wrap,
.dc-card__icon-fallback {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgb(88 101 242 / 0.35), rgb(88 101 242 / 0.12));
  border: 1px solid rgb(88 101 242 / 0.35);
  box-shadow: 0 0 18px rgb(88 101 242 / 0.2);
  color: #fff;
}

.dc-card__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dc-card__info {
  min-width: 0;
}

.dc-card__kicker {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(88 101 242 / 0.95);
}

.dc-card__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-card__status {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: rgb(var(--muted-foreground));
}

.dc-card__stats {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.dc-stat {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 5.5rem;
}

.dc-stat__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.dc-stat__dot--online {
  background: var(--dc-online);
  box-shadow: 0 0 10px rgb(35 165 89 / 0.75);
  animation: dc-dot-pulse 1.8s ease-in-out infinite;
}

.dc-stat__dot--members {
  background: var(--dc-blurple);
  box-shadow: 0 0 8px rgb(88 101 242 / 0.55);
}

@keyframes dc-dot-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

.dc-stat__value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: hsl(var(--foreground));
  font-variant-numeric: tabular-nums;
}

.dc-stat__label {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgb(var(--muted-foreground));
}

.dc-card__cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 1.25rem 1.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow:
    0 4px 18px rgb(88 101 242 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dc-card__cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 28px rgb(88 101 242 / 0.45),
    inset 0 1px 0 rgb(255 255 255 / 0.15);
}

.dc-card__cta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgb(255 255 255 / 0.18) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.dc-card__cta:hover .dc-card__cta-shine {
  transform: translateX(120%);
}

@media (min-width: 640px) {
  .dc-card__cta {
    margin: 0 1.5rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dc-stat__dot--online {
    animation: none;
  }

  .dc-card__cta,
  .dc-card__cta-shine {
    transition: none;
  }
}