/* Element Arena Wiki — Custom Styles
   Layered on top of Tailwind CSS (CDN) */

:root {
  --ea-navy: #1E1B4B;
  --ea-navy-deep: #15123a;
  --ea-navy-darker: #0f0c2e;
  --ea-purple: #6B21A8;
  --ea-purple-bright: #9333EA;
  --ea-purple-light: #C084FC;
  --ea-gold: #FBBF24;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--ea-navy-darker);
  color: #E5E7EB;
}

/* Tailwind CDN config sets bg utilities, but keep fallback gradients */
.bg-hero {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(147, 51, 234, 0.30), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(107, 33, 168, 0.28), transparent 55%),
    linear-gradient(180deg, #1E1B4B 0%, #15123a 60%, #0f0c2e 100%);
}

.bg-section {
  background: linear-gradient(180deg, #0f0c2e 0%, #15123a 100%);
}

.card-glow {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(147, 51, 234, 0.7);
  box-shadow: 0 12px 40px -8px rgba(147, 51, 234, 0.45);
}

.text-gradient {
  background: linear-gradient(90deg, #C084FC, #9333EA, #FBBF24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Article prose styling */
.prose-ea h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #F3E8FF;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-left: 0.75rem;
  border-left: 4px solid #9333EA;
}
.prose-ea h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #C084FC;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}
.prose-ea p {
  line-height: 1.8;
  color: #CBD5E1;
  margin-bottom: 1.05rem;
}
.prose-ea ul, .prose-ea ol {
  color: #CBD5E1;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  padding-left: 1.4rem;
}
.prose-ea ul li { list-style: disc; margin-bottom: .4rem; }
.prose-ea ol li { list-style: decimal; margin-bottom: .4rem; }
.prose-ea a { color: #C084FC; text-decoration: underline; }
.prose-ea a:hover { color: #FBBF24; }
.prose-ea strong { color: #F3E8FF; }

/* Tables */
.tbl-ea {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  margin: 1.25rem 0;
}
.tbl-ea th {
  background: rgba(147, 51, 234, 0.22);
  color: #F3E8FF;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}
.tbl-ea td {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(147, 51, 234, 0.18);
  color: #CBD5E1;
  font-size: 0.92rem;
}
.tbl-ea tr:nth-child(even) td { background: rgba(30, 27, 75, 0.45); }

/* Tier badges */
.tier-S { background: linear-gradient(135deg,#F59E0B,#DC2626); }
.tier-A { background: linear-gradient(135deg,#EC4899,#9333EA); }
.tier-B { background: linear-gradient(135deg,#3B82F6,#1E1B4B); }
.tier-C { background: linear-gradient(135deg,#10B981,#065F46); }
.tier-D { background: linear-gradient(135deg,#64748B,#334155); }
.tier-S,.tier-A,.tier-B,.tier-C,.tier-D {
  color:#fff; font-weight:700; padding:.2rem .6rem; border-radius:.4rem; font-size:.8rem;
  display:inline-block; min-width:1.6rem; text-align:center;
}

/* Code chip */
.code-chip {
  font-family: 'JetBrains Mono','Fira Code',ui-monospace,monospace;
  background: rgba(15, 12, 46, 0.9);
  border: 1px solid rgba(147, 51, 234, 0.5);
  color: #FBBF24;
}

.copy-btn.copied {
  background: #10B981 !important;
}

/* FAQ */
details.faq-item {
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 0.75rem;
  background: rgba(30, 27, 75, 0.4);
  padding: 0.25rem 1.1rem;
  margin-bottom: 0.75rem;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #F3E8FF;
  padding: 0.75rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  color: #C084FC;
  font-size: 1.3rem;
  transition: transform .2s;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { color:#CBD5E1; padding-bottom:.75rem; line-height:1.7; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f0c2e; }
::-webkit-scrollbar-thumb { background: #6B21A8; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #9333EA; }

/* Active nav link */
.nav-active {
  color: #FBBF24 !important;
}
