/* ========================================
   COMMUNITY PAGE STYLES - INDUSTRIAL
   ======================================== */

.community-mesh { display: none; }

.discord-section { padding: 2rem 0 4rem; }
.discord-container { display: flex; flex-direction: column; gap: 2rem; }

/* Bento Panel Style for Discord Info */
.discord-info {
  padding: 3rem;
  display: flex; flex-direction: column; gap: 2rem;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(88, 101, 242, 0.02) 2px, rgba(88, 101, 242, 0.02) 4px), var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-left: 4px solid #5865F2;
  position: relative;
}

.discord-header {
  display: flex; align-items: center; gap: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px dashed var(--border-dim);
}

.discord-logo {
  width: 64px; height: 64px;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid #5865F2;
  display: flex; align-items: center; justify-content: center;
  color: #5865F2; flex-shrink: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.discord-logo svg { width: 36px; height: 36px; }

.discord-title h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; text-transform: uppercase;
  color: var(--text-main); margin-bottom: 0.25rem;
}
.discord-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--text-muted); text-transform: uppercase;
}
.discord-status .status-dot {
  width: 8px; height: 8px;
  background: var(--accent-success);
  box-shadow: 0 0 10px var(--accent-success);
  animation: blink 1s infinite step-end;
}

.discord-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  padding: 1.5rem; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-dim);
}
.d-stat { display: flex; flex-direction: column; gap: 0.5rem; text-align: left; }
.d-stat-number {
  font-family: var(--font-mono); font-size: 2rem; font-weight: 700;
  color: #5865F2; line-height: 1;
}
.d-stat-number::before { content: '>'; color: var(--text-muted); margin-right: 0.5rem; font-size: 1.5rem; }
.d-stat-label {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}

.discord-features { display: flex; flex-direction: column; gap: 1rem; }
.d-feature {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-dim);
}
.d-feature-icon { font-size: 1.25rem; filter: grayscale(100%) brightness(200%); }
.d-feature span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }

.btn-discord {
  background: #5865F2 !important; color: white !important;
  font-family: var(--font-mono) !important; text-transform: uppercase;
  font-weight: 700 !important; letter-spacing: 0.05em;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  border: none !important; transition: all 0.3s !important;
  padding: 1rem 2rem !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 0.75rem !important;
}
.btn-discord:hover { background: #4752C4 !important; box-shadow: 0 0 20px rgba(88, 101, 242, 0.4) !important; transform: translateY(-2px); }
.btn-discord svg { width: 20px; height: 20px; }

.discord-widget {
  min-height: 400px; position: relative;
  border: 1px solid var(--border-dim);
  background: var(--bg-panel);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.widget-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(88, 101, 242, 0.05);
}
.widget-loading { text-align: center; color: var(--text-muted); font-family: var(--font-mono); }
.widget-loading .spinner { margin: 0 auto 1rem; width: 40px; height: 40px; border: 3px solid transparent; border-top-color: #5865F2; border-right-color: #5865F2; }
.widget-loading p { margin-bottom: 0.5rem; color: var(--text-main); font-weight: 700; text-transform: uppercase; }
.widget-loading small { font-size: 0.75rem; opacity: 0.7; }

.btn-discord-secondary {
  background: transparent !important; color: #5865F2 !important;
  border: 1px solid #5865F2 !important;
  font-family: var(--font-mono) !important; text-transform: uppercase;
  font-weight: 700 !important; letter-spacing: 0.05em;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  transition: all 0.3s !important;
  padding: 1rem 2rem !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 0.75rem !important;
}
.btn-discord-secondary:hover { background: rgba(88, 101, 242, 0.1) !important; box-shadow: inset 0 0 20px rgba(88, 101, 242, 0.2) !important; }
.btn-discord-secondary svg { width: 20px; height: 20px; }

.community-visual { display: none; } /* Hide soft visual elements */

@media (min-width: 768px) {
  .discord-container { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
  .discord-info { padding: 3rem; }
  .discord-title h2 { font-size: 2rem; }
  .btn-discord, .btn-discord-secondary { width: auto !important; }
}
