/* ═══════════════════════════════════════════════════════════════
   EphyroMC — Community Styles  |  Dipende da: assets/css/style.css
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   PAGE HEADER
───────────────────────────────────────────── */
#community-header {
  padding: calc(var(--nav-h) + 50px) 0 56px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--gold-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#community-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(74,184,180,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(142,108,200,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.community-header-inner { position: relative; z-index: 1; }

#community-header .s-label { animation: c-enter 600ms cubic-bezier(0.16,1,0.3,1) both; }
#community-header .s-title { animation: c-enter 600ms cubic-bezier(0.16,1,0.3,1) 90ms both; }
#community-header .s-text  { animation: c-enter 600ms cubic-bezier(0.16,1,0.3,1) 200ms both; }

@keyframes c-enter {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   COMMUNITY NAV (pill tab bar)
───────────────────────────────────────────── */
#community-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
  background: rgba(7,9,15,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
}

.community-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.community-nav-inner::-webkit-scrollbar { display: none; }

.community-tab {
  font-family: var(--ff-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 22px 14px;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: block;
}

.community-tab:hover  { color: var(--text-2); }
.community-tab.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ─────────────────────────────────────────────
   SECTION BASE
───────────────────────────────────────────── */
.community-section {
  padding: 88px 0;
  position: relative;
}

.community-section:nth-child(odd)  { background: var(--bg-0); }
.community-section:nth-child(even) { background: var(--bg-1); }

.community-section + .community-section {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Section anchor offset (per sticky nav) */
.community-section::before {
  content: '';
  display: block;
  height: calc(var(--nav-h) + 52px);
  margin-top: calc(-1 * (var(--nav-h) + 52px));
  visibility: hidden;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   DISCORD
───────────────────────────────────────────── */
.discord-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.discord-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-logo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(88,101,242,0.18) 0%, rgba(88,101,242,0.05) 60%, transparent 80%);
  border: 1px solid rgba(88,101,242,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: discord-pulse 4s ease-in-out infinite;
}

@keyframes discord-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(88,101,242,0); }
  50%      { box-shadow: 0 0 32px 8px rgba(88,101,242,0.12); }
}

.discord-stats {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.discord-stat {
  text-align: center;
}

.discord-stat-val {
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: 900;
  color: var(--text-1);
  display: block;
}

.discord-stat-lbl {
  font-family: var(--ff-head);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-top: 2px;
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--ease), box-shadow var(--ease), transform var(--ease);
  box-shadow: 0 4px 24px rgba(88,101,242,0.38);
  margin-top: 28px;
}

.btn-discord:hover {
  opacity: 0.92;
  box-shadow: 0 7px 32px rgba(88,101,242,0.52);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   WIKI
───────────────────────────────────────────── */
.wiki-intro { max-width: 60ch; margin-bottom: 48px; }

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.wiki-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.16,1,0.3,1), box-shadow 300ms, border-color 300ms;
  position: relative;
  overflow: hidden;
}

.wiki-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wiki-color, var(--gold)), transparent);
  opacity: 0;
  transition: opacity var(--ease);
}

.wiki-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.45);
  border-color: rgba(201,150,58,0.38);
}

.wiki-card:hover::before { opacity: 1; }

.wiki-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wiki-title {
  font-family: var(--ff-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.04em;
}

.wiki-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.65;
}

.wiki-coming-soon {
  font-family: var(--ff-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 3px 10px;
  border-radius: 99px;
  display: inline-block;
  width: fit-content;
  margin-top: auto;
}

/* ─────────────────────────────────────────────
   FAQ
───────────────────────────────────────────── */
.faq-intro { max-width: 60ch; margin-bottom: 48px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--ease);
}

.faq-item.open { border-color: var(--gold-border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  transition: background var(--ease);
}

.faq-question:hover { background: rgba(255,255,255,0.025); }

.faq-question-text {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-1);
}

.faq-item.open .faq-question-text { color: var(--gold-bright); }

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 260ms cubic-bezier(0.4,0,0.2,1);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 340ms cubic-bezier(0.16,1,0.3,1);
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.78;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.faq-answer-inner strong { color: var(--text-1); }

.faq-answer-inner code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--gold);
}

/* ─────────────────────────────────────────────
   STAFF
───────────────────────────────────────────── */
.staff-intro { max-width: 60ch; margin-bottom: 48px; }

.staff-tiers { display: flex; flex-direction: column; gap: 28px; }

.staff-tier {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-tier-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.staff-tier-gem {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.staff-tier-name {
  font-family: var(--ff-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.staff-tier-desc {
  font-size: 13px;
  color: var(--text-3);
  margin-left: auto;
}

.staff-members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform var(--ease), border-color var(--ease);
}

.staff-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,150,58,0.38);
}

.staff-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.staff-card-name {
  font-family: var(--ff-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: 0.03em;
}

.staff-card-role {
  font-family: var(--ff-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 860px) {
  .discord-grid { grid-template-columns: 1fr; gap: 40px; }
  .wiki-grid    { grid-template-columns: repeat(2,1fr); }
  .community-nav-inner { padding: 0 16px; }
}

@media (max-width: 600px) {
  #community-header { padding: calc(var(--nav-h) + 32px) 0 36px; }
  .community-section { padding: 60px 0; }
  .community-tab    { font-size: 10.5px; padding: 14px 14px 12px; letter-spacing: 0.08em; }
  .wiki-grid        { grid-template-columns: 1fr; }
  .discord-logo-wrap { width: 160px; height: 160px; }
  .discord-stats    { gap: 20px; }
  .staff-members-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  #community-header .s-label,
  #community-header .s-title,
  #community-header .s-text { animation: none; opacity: 1; }
  .discord-logo-wrap { animation: none; }
}