/* ============================================================
   OGameX WIKI PAGES — SEO Content Pages Styling
   Beautiful, modern space-themed wiki design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   1. WIKI CONTAINER
   ============================================================ */

.wiki-page {
  font-family: 'Exo 2', 'Inter', sans-serif;
  color: #c8d6e5;
  line-height: 1.85;
  font-size: 15px;
  max-width: 100%;
  padding: 0;
}

/* ============================================================
   2. HERO BANNER
   ============================================================ */

.wiki-hero {
  position: relative;
  background: linear-gradient(135deg, #040810 0%, #0a1628 25%, #0d2040 50%, #061530 75%, #020810 100%);
  border-radius: 12px;
  padding: 50px 40px;
  margin-bottom: 35px;
  border: 1px solid rgba(0,180,216,0.15);
  overflow: hidden;
  text-align: center;
}

.wiki-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 300px at 20% 50%, rgba(0,100,200,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 200px at 80% 30%, rgba(0,180,216,0.06) 0%, transparent 70%),
    radial-gradient(circle 2px at 15% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 25% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 45% 15%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(circle 1px at 55% 80%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 70% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 85% 70%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(circle 1px at 90% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(circle 1px at 35% 90%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}

.wiki-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00b4d8 30%, #2563eb 50%, #00b4d8 70%, transparent 100%);
  opacity: 0.7;
}

.wiki-hero h2 {
  font-family: 'Exo 2', 'Trebuchet MS', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 1px;
  margin: 0 0 10px 0;
  text-shadow: 0 0 15px rgba(0,180,216,0.3);
  position: relative;
  z-index: 2;
}

.wiki-hero .hero-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: 17px;
  color: #7eb8d8;
  font-weight: 300;
  letter-spacing: 2px;
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
}

.wiki-hero .hero-desc {
  font-size: 15px;
  color: #8ba4bc;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  line-height: 1.8;
}

/* Breadcrumb */
.wiki-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #5a7a96;
  position: relative;
  z-index: 2;
  justify-content: center;
}

.wiki-breadcrumb a {
  color: #00b4d8;
  text-decoration: none;
  transition: color 0.2s;
}

.wiki-breadcrumb a:hover {
  color: #40d4f0;
}

.wiki-breadcrumb .sep {
  color: #2a4060;
}

/* ============================================================
   3. TABLE OF CONTENTS
   ============================================================ */

.wiki-toc {
  background: linear-gradient(135deg, #080e1c 0%, #0c1428 100%);
  border: 1px solid rgba(0,180,216,0.12);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 35px;
  position: relative;
}

.wiki-toc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.3), transparent);
}

.wiki-toc h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: #00b4d8;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,180,216,0.1);
}

.wiki-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 6px 20px;
}

.wiki-toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ba4bc;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.wiki-toc a:hover {
  color: #00b4d8;
  background: rgba(0,180,216,0.05);
}

.wiki-toc a .toc-num {
  color: #2a5070;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  min-width: 24px;
}

/* ============================================================
   4. SECTION HEADINGS
   ============================================================ */

.wiki-page h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 50px 0 25px 0;
  padding: 18px 25px;
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #0a1a35 100%);
  border-radius: 10px;
  border: 1px solid rgba(0,180,216,0.12);
  border-left: 4px solid #00b4d8;
  position: relative;
  text-shadow: 0 0 20px rgba(0,180,216,0.2);
}

.wiki-page h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, #00b4d8 0%, transparent 60%);
  opacity: 0.3;
}

.wiki-page h3 .h2-icon {
  margin-right: 12px;
  font-size: 22px;
}

.wiki-page h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #e0eaf0;
  letter-spacing: 1px;
  margin: 30px 0 15px 0;
  padding: 0 0 8px 15px;
  border-left: 3px solid rgba(0,180,216,0.4);
  text-shadow: 0 0 10px rgba(0,180,216,0.1);
}

/* ============================================================
   5. BUILDING CARDS
   ============================================================ */

.wiki-building-card {
  background: linear-gradient(145deg, #080e1c 0%, #0c1530 50%, #0a1225 100%);
  border: 1px solid rgba(0,180,216,0.1);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.wiki-building-card:hover {
  border-color: rgba(0,180,216,0.25);
}

.wiki-building-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,180,216,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.wiki-building-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.wiki-building-icon {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d1f3c, #152a50);
  border: 1px solid rgba(0,180,216,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}

.wiki-building-icon.metal { background: linear-gradient(135deg, #1a1f28, #2a3040); border-color: rgba(156,163,175,0.3); }
.wiki-building-icon.crystal { background: linear-gradient(135deg, #0d1a30, #152850); border-color: rgba(96,165,250,0.3); }
.wiki-building-icon.deuterium { background: linear-gradient(135deg, #0a1a28, #0d2538); border-color: rgba(34,211,238,0.3); }
.wiki-building-icon.energy { background: linear-gradient(135deg, #1a1808, #2a2810); border-color: rgba(250,204,21,0.3); }
.wiki-building-icon.storage { background: linear-gradient(135deg, #141020, #1a1530); border-color: rgba(168,85,247,0.3); }
.wiki-building-icon.fusion { background: linear-gradient(135deg, #1a0f08, #2a1810); border-color: rgba(245,158,11,0.3); }

.wiki-building-title {
  flex: 1;
}

.wiki-building-title h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  padding: 0;
  border: none;
  letter-spacing: 1px;
}

.wiki-building-title .building-tagline {
  font-size: 13px;
  color: #5a7a96;
  font-style: italic;
  letter-spacing: 0.5px;
}

.wiki-building-body p {
  margin: 0 0 15px 0;
  color: #a0b4c8;
  line-height: 1.85;
}

.wiki-building-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   6. STATS / INFO BOXES
   ============================================================ */

.wiki-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.wiki-stat-box {
  background: rgba(0,180,216,0.03);
  border: 1px solid rgba(0,180,216,0.08);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.wiki-stat-box .stat-label {
  font-size: 11px;
  color: #5a7a96;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 6px;
}

.wiki-stat-box .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #00b4d8;
  font-family: 'Orbitron', sans-serif;
}

.wiki-stat-box .stat-value.metal { color: #9ca3af; }
.wiki-stat-box .stat-value.crystal { color: #60a5fa; }
.wiki-stat-box .stat-value.deuterium { color: #22d3ee; }
.wiki-stat-box .stat-value.energy { color: #facc15; }
.wiki-stat-box .stat-value.dm { color: #c084fc; }

/* ============================================================
   7. FORMULA / CODE BOXES
   ============================================================ */

.wiki-formula {
  background: linear-gradient(135deg, #060a14 0%, #0a1020 100%);
  border: 1px solid rgba(37,99,235,0.15);
  border-left: 3px solid #2563eb;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 18px 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #60a5fa;
  overflow-x: auto;
}

.wiki-formula .formula-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: #3a5580;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

/* ============================================================
   8. TIP / INFO / WARNING BOXES
   ============================================================ */

.wiki-tip {
  background: linear-gradient(135deg, #081810 0%, #0a2018 100%);
  border: 1px solid rgba(34,197,94,0.15);
  border-left: 3px solid #22c55e;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
  position: relative;
}

.wiki-tip::before {
  content: 'COMMANDER TIP';
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: #22c55e;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.wiki-tip p {
  color: #80c0a0;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.wiki-warning {
  background: linear-gradient(135deg, #181008 0%, #201810 100%);
  border: 1px solid rgba(245,158,11,0.15);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0;
  position: relative;
}

.wiki-warning::before {
  content: 'IMPORTANT';
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: #f59e0b;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.wiki-warning p {
  color: #c0a060;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   9. TABLES
   ============================================================ */

.wiki-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid rgba(0,180,216,0.1);
}

.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wiki-table thead th {
  background: linear-gradient(135deg, #0a1628, #0d1f3c);
  color: #00b4d8;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid rgba(0,180,216,0.15);
  white-space: nowrap;
}

.wiki-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,180,216,0.05);
  color: #a0b4c8;
}

.wiki-table tbody tr {
  background: rgba(8,14,28,0.5);
  transition: background 0.2s;
}

.wiki-table tbody tr:nth-child(even) {
  background: rgba(12,20,40,0.5);
}

.wiki-table tbody tr:hover {
  background: rgba(0,180,216,0.04);
}

.wiki-table .level-col {
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  color: #00b4d8;
  font-size: 13px;
}

/* ============================================================
   10. COMPARISON GRID
   ============================================================ */

.wiki-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 25px 0;
}

.wiki-compare-item {
  background: linear-gradient(145deg, #080e1c, #0c1530);
  border: 1px solid rgba(0,180,216,0.08);
  border-radius: 10px;
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}

.wiki-compare-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0,180,216,0.2);
}

.wiki-compare-item h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.wiki-compare-item p {
  font-size: 13px;
  color: #7a94ac;
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   11. RESOURCE COLOR HIGHLIGHTS
   ============================================================ */

.res-metal { color: #9ca3af; font-weight: 600; }
.res-crystal { color: #60a5fa; font-weight: 600; }
.res-deut { color: #22d3ee; font-weight: 600; }
.res-energy { color: #facc15; font-weight: 600; }
.res-dm { color: #c084fc; font-weight: 600; }

/* ============================================================
   12. KEY POINTS LIST
   ============================================================ */

.wiki-key-points {
  list-style: none;
  padding: 0;
  margin: 18px 0;
}

.wiki-key-points li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #a0b4c8;
  font-size: 14px;
  line-height: 1.7;
}

.wiki-key-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: #00b4d8;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,180,216,0.4);
}

/* ============================================================
   13. INLINE LINKS
   ============================================================ */

.wiki-page a.wiki-link {
  color: #00b4d8;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,180,216,0.2);
  transition: all 0.2s;
}

.wiki-page a.wiki-link:hover {
  color: #40d4f0;
  border-bottom-color: #40d4f0;
}

/* ============================================================
   14. BOTTOM NAVIGATION
   ============================================================ */

.wiki-nav-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(0,180,216,0.1);
  gap: 15px;
}

.wiki-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0a1628, #0d1f3c);
  border: 1px solid rgba(0,180,216,0.15);
  border-radius: 10px;
  color: #8ba4bc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s;
  font-family: 'Exo 2', sans-serif;
}

.wiki-nav-btn:hover {
  border-color: #00b4d8;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(0,180,216,0.1);
}

.wiki-nav-btn .nav-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: #3a5580;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
}

.wiki-nav-btn .nav-title {
  display: block;
  font-weight: 600;
  color: #00b4d8;
}

/* ============================================================
   15. FAQ SECTION
   ============================================================ */

.wiki-faq-item {
  background: rgba(8,14,28,0.6);
  border: 1px solid rgba(0,180,216,0.06);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 12px;
}

.wiki-faq-item h4 {
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #e0eaf0;
  margin: 0 0 10px 0;
}

.wiki-faq-item p {
  color: #8ba4bc;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================================
   16. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .wiki-hero {
    padding: 30px 20px;
  }

  .wiki-hero h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
  }

  .wiki-building-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .wiki-toc-grid {
    grid-template-columns: 1fr;
  }

  .wiki-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .wiki-nav-bottom {
    flex-direction: column;
  }

  .wiki-nav-btn {
    width: 100%;
    justify-content: center;
  }

  .wiki-page h4 {
    font-size: 18px;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .wiki-stats-grid {
    grid-template-columns: 1fr;
  }

  .wiki-hero h2 {
    font-size: 16px;
  }
}


/* h5 - Comparison sub-items */
.wiki-page h5 {
  font-family: 'Exo 2', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #d0dce8;
  margin: 20px 0 10px 0;
  padding: 0 0 0 10px;
  border-left: 2px solid rgba(0,180,216,0.25);
}
