/* ═══════════════════════════════════════════
   community.css — CoconutGamers Section
   RainByte Studios
═══════════════════════════════════════════ */

#community {
  position: relative;
  overflow: hidden;
}

#community::before {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(245,166,35,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.community-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-pad) var(--page-pad);
}

/* ── Layout ── */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .community-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* ── Left text ── */
.community-text .section-label::before { background: var(--coconut); }
.community-text .section-label { color: var(--coconut); }

.community-text .section-title .coconut-word {
  background: linear-gradient(135deg, var(--coconut), #ffdd88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.community-text .section-desc { margin-bottom: 32px; }

.community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.comm-stat {
  padding: 20px;
  border: 1px solid rgba(245, 166, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(245, 166, 35, 0.04);
  text-align: center;
  transition: border-color 0.3s;
}
.comm-stat:hover { border-color: rgba(245, 166, 35, 0.35); }
.comm-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--coconut), #ffdd88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}
.comm-stat-label {
  font-family: var(--font-display);
  font-size: 0.46rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* ── Community link card ── */
.community-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius);
  background: rgba(245, 166, 35, 0.04);
  gap: 16px;
  transition: border-color 0.3s, background 0.3s;
}
.community-link-card:hover {
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(245, 166, 35, 0.07);
}
.community-link-card .link-left {
  display: flex; align-items: center; gap: 14px;
}
.coconut-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245,166,35,0.2), rgba(200,125,16,0.1));
  border: 1px solid rgba(245,166,35,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.community-link-card .link-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--silver);
  margin-bottom: 3px;
}
.community-link-card .link-url {
  font-size: 0.75rem;
  color: var(--coconut);
  letter-spacing: 0.04em;
  opacity: 0.8;
}
.community-link-card .link-arrow {
  color: var(--coconut);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}
.community-link-card:hover .link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ── Right: canvas ── */
.community-visual {
  position: relative;
  aspect-ratio: 1;
}
#community-canvas {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(245, 166, 35, 0.12);
  display: block;
}
.community-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-style: solid;
  border-color: var(--coconut);
}
.community-corner.tl { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.community-corner.tr { top: -7px; right: -7px; border-width: 2px 2px 0 0; }
.community-corner.bl { bottom: -7px; left: -7px; border-width: 0 0 2px 2px; }
.community-corner.br { bottom: -7px; right: -7px; border-width: 0 2px 2px 0; }

/* ── Channel strips ── */
.channel-strips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 48px;
}
.channel-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s;
}
.channel-strip:hover { border-color: rgba(245, 166, 35, 0.25); }
.channel-platform {
  font-family: var(--font-display);
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  color: var(--coconut);
  min-width: 80px;
}
.channel-name {
  font-size: 0.85rem;
  color: var(--silver);
  font-weight: 400;
  flex: 1;
}
.channel-count {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
