/* ============================================================================
   Erendor Online — Oyun Rehberi (wiki) stili
   guide.css'in uzerine yuklenir; palet ondan devralinir (Iznik Gecesi):
   zemin #0b0d16 · kart #161a2a · panel #0f121d · kenar #2b3350 · firuze #3f9488
   ============================================================================ */

/* --- Iki sutun: sol sabit icindekiler, sag icerik --- */
.wiki-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.wiki-side { position: sticky; top: 88px; }

.wiki-side-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7d86a6;
  margin: 0 0 10px;
  padding-left: 12px;
}

.wiki-nav { display: flex; flex-direction: column; gap: 2px; }
.wiki-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  color: #cbd0e0;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: background .15s, color .15s, border-color .15s;
}
.wiki-nav a:hover {
  background: #161a2a;
  color: #f2f3f8;
  border-left-color: #3f9488;
}
.wiki-navicon { color: #3f9488; font-size: 13px; width: 14px; text-align: center; }

/* --- Arama satiri --- */
.wiki-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.wiki-toolbar .guide-search { flex: 1 1 280px; max-width: none; }

.wiki-source {
  font-size: 12px;
  color: #6f7897;
  margin: 0 0 22px;
  padding-left: 2px;
}
.wiki-source.is-warn { color: #c2703f; }

/* --- Bolum --- */
.wiki-section { margin-bottom: 52px; scroll-margin-top: 96px; }
.wiki-section-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2b3350;
}
.wiki-section-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #0f121d;
  border: 1px solid #3a4568;
  color: #3f9488;
  font-size: 17px;
}
.wiki-section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(21px, 3vw, 27px);
  color: #e4e7f0;
  margin: 0 0 4px;
}
.wiki-section-summary {
  font-size: 13px;
  color: #8f98b5;
  line-height: 1.6;
  margin: 0;
  max-width: 70ch;
}

/* --- Madde --- */
.wiki-entry {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 16px;
  scroll-margin-top: 96px;
}
.wiki-entry:target { border-color: #3f9488; }

.wiki-entry-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  color: #e4e7f0;
  margin: 0 0 12px;
}
.wiki-anchor {
  color: #3a4568;
  text-decoration: none;
  font-size: 15px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity .15s, color .15s;
}
.wiki-entry:hover .wiki-anchor { opacity: 1; }
.wiki-anchor:hover { color: #3f9488; }

.wiki-body { font-size: 14px; color: #a4abc2; line-height: 1.7; }
.wiki-body p { margin: 0 0 12px; }
.wiki-body strong, .wiki-steps strong, .wiki-table strong { color: #e4e7f0; }
.wiki-body em { color: #cbd0e0; font-style: italic; }
.wiki-body a, .wiki-steps a { color: #3f9488; text-decoration: none; border-bottom: 1px dotted #3f9488; }
.wiki-body a:hover, .wiki-steps a:hover { color: #86d9cd; border-bottom-color: #86d9cd; }

/* --- Kilit sayilar --- */
.wiki-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 4px 0 16px;
}
.wiki-fact {
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 8px;
  padding: 9px 11px;
}
.wiki-fact-label { display: block; font-size: 11px; color: #7d86a6; margin-bottom: 3px; }
.wiki-fact-value { font-size: 14px; color: #3f9488; }

/* --- Tablo (dar ekranda kendi icinde kayar) --- */
.wiki-tablewrap {
  overflow-x: auto;
  margin: 4px 0 16px;
  border: 1px solid #2b3350;
  border-radius: 10px;
}
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 380px;
}
.wiki-table th {
  background: #0f121d;
  color: #7d86a6;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #2b3350;
  white-space: nowrap;
}
.wiki-table td {
  padding: 10px 12px;
  color: #a4abc2;
  line-height: 1.5;
  border-bottom: 1px solid #212840;
}
.wiki-table tbody tr:last-child td { border-bottom: 0; }
.wiki-table tbody tr:hover td { background: #1b2032; }
.wiki-td-key { color: #cbd0e0; white-space: nowrap; }

/* --- Maddeler --- */
.wiki-steps { margin: 0 0 14px; padding-left: 18px; }
.wiki-steps li { font-size: 13px; color: #a4abc2; line-height: 1.65; margin-bottom: 8px; }
.wiki-steps li::marker { color: #3f9488; }

.wiki-tip {
  background: #1b2032;
  border-left: 3px solid #3f9488;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 12.5px;
  color: #cbd0e0;
  line-height: 1.65;
  margin: 0;
}
.wiki-tip span { color: #3f9488; font-weight: 600; }
.wiki-tip strong { color: #e4e7f0; }
.wiki-tip em { font-style: italic; }

/* --- Rehber ana sayfasi (hub) kartlari --- */
.wiki-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 44px;
}
.wiki-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #161a2a;
  border: 1px solid #2b3350;
  border-top: 3px solid #3f9488;
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  transition: transform .15s, border-color .15s, background .15s;
}
.wiki-hub-card:hover { transform: translateY(-2px); background: #1b2032; border-color: #3f9488; }
.wiki-hub-icon { color: #3f9488; font-size: 20px; }
.wiki-hub-title { font-family: 'Cinzel', serif; font-size: 17px; color: #e4e7f0; margin: 0; }
.wiki-hub-text { font-size: 13px; color: #8f98b5; line-height: 1.6; margin: 0; }
.wiki-hub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wiki-hub-tag {
  font-size: 11px;
  color: #7d86a6;
  background: #0f121d;
  border: 1px solid #2b3350;
  border-radius: 999px;
  padding: 3px 9px;
}

/* Ana sayfadaki rehber vitrini */
.guide-teaser-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.guide-teaser-section .wiki-hub-grid { margin-bottom: 22px; }
.guide-teaser-more { text-align: center; }

.wiki-more {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border: 1px solid #3f9488;
  border-radius: 2px;
  background: rgba(79, 179, 166, .07);
  color: #86d9cd;
  font-size: 0.82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.wiki-more:hover { background: rgba(79, 179, 166, .18); color: #eceef4; }

/* Hizli cevap listesi (hub) */
.wiki-faq { display: flex; flex-direction: column; gap: 10px; margin-bottom: 44px; }
.wiki-faq-item {
  background: #161a2a;
  border: 1px solid #2b3350;
  border-radius: 10px;
  padding: 14px 18px;
}
.wiki-faq-q { font-size: 14px; color: #e4e7f0; margin: 0 0 6px; font-weight: 600; }
.wiki-faq-a { font-size: 13px; color: #a4abc2; line-height: 1.65; margin: 0; }
.wiki-faq-a a { color: #3f9488; text-decoration: none; border-bottom: 1px dotted #3f9488; }
.wiki-faq-a a:hover { color: #86d9cd; }

@media (max-width: 900px) {
  /* minmax(0,1fr) + min-width:0 ŞART: grid/flex öğesinin varsayılan min-width'i
     "auto"dur, yani içeriği kadar genişler. O hâlde alttaki yatay kaydırma şeridi
     kaydırmaz, tüm SAYFAYI yana taşırır (menü 1200px genişliğe şişiyordu). */
  .wiki-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .wiki-side {
    min-width: 0;
    position: sticky;
    top: 64px;
    z-index: 20;
    background: rgba(11, 13, 22, .94);
    backdrop-filter: blur(6px);
    border: 1px solid #2b3350;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 10px;
  }
  .wiki-side-title { display: none; }
  .wiki-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    scrollbar-width: none;
    min-width: 0;
  }
  .wiki-nav::-webkit-scrollbar { display: none; }
  .wiki-nav a {
    border-left: 0;
    border-radius: 999px;
    padding: 7px 13px;
    white-space: nowrap;
    background: #161a2a;
  }
  .wiki-entry { padding: 16px 15px; }
  .wiki-anchor { display: none; }
}
