/* MediaWiki-Style Layout für Epic Fail Tavern */

/* Override eft-container für Wiki-Bereiche */
body.wiki-layout-full .eft-container.wiki-full-width {
  max-width: 100% !important;
  padding: 0 !important;
}

body.wiki-layout-full section.eft-panel.wiki-full-width {
  display: contents !important;
}

/* Page Grid - Hauptlayout */
.wiki-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 16px;
}

@media (max-width: 1024px) {
  .wiki-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wiki-sidebar { order: 2; }
  .wiki-main { order: 1; }
}

/* Header-Bereich */
.wiki-header {
  background: #2a2a2a;
  border-bottom: 2px solid #444;
  padding: 16px;
  margin-bottom: 16px;
}

.wiki-title {
  font-size: 2rem;
  color: #ffda73;
  margin: 0 0 12px;
  text-shadow: 0 0 8px rgba(255,218,115,0.3);
  font-weight: 700;
  line-height: 1.2;
}

/* Tab-Navigation */
.wiki-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid #444;
  flex-wrap: wrap;
}

.wiki-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: #ccc;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.wiki-tab:hover {
  background: #333;
  color: #ffda73;
}

.wiki-tab.active {
  border-bottom-color: #e5b95c;
  color: #ffda73;
  background: #1a1a1a;
}

/* Hinweisleiste */
.wiki-notice {
  background: #f0f0f0;
  border-left: 4px solid #e5b95c;
  padding: 12px 16px;
  margin: 16px 0;
  color: #333;
  font-size: 14px;
}

.wiki-notice.info { background: #e3f2fd; border-color: #2196f3; }
.wiki-notice.warning { background: #fff3cd; border-color: #ffc107; }

/* Sub-Tabs */
.wiki-subtabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.wiki-subtab {
  background: #333;
  border: 1px solid #555;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.wiki-subtab:hover {
  background: #444;
  border-color: #666;
  color: #ffda73;
}

/* Hauptinhalt */
.wiki-main {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 20px;
  min-height: 400px;
}

.wiki-body {
  line-height: 1.6;
  color: #ddd;
  font-size: 15px;
}

/* Typografie */
.wiki-body h1 {
  font-size: 1.8rem;
  color: #ffda73;
  border-bottom: 3px solid #444;
  padding-bottom: 8px;
  margin: 24px 0 16px;
  font-weight: 700;
}

.wiki-body h2 {
  font-size: 1.5rem;
  color: #ffda73;
  border-bottom: 2px solid #333;
  padding-bottom: 6px;
  margin: 20px 0 12px;
  font-weight: 600;
}

.wiki-body h3 {
  font-size: 1.3rem;
  color: #e5b95c;
  margin: 16px 0 8px;
  font-weight: 600;
}

.wiki-body h4 {
  font-size: 1.1rem;
  color: #d4a154;
  margin: 12px 0 8px;
  font-weight: 600;
}

.wiki-body p {
  margin: 12px 0;
  text-align: justify;
}

.wiki-body a {
  color: #e5b95c;
  text-decoration: underline;
  transition: color 0.2s;
}

.wiki-body a:hover {
  color: #ffda73;
  text-decoration: none;
}

/* Listen */
.wiki-body ul, .wiki-body ol {
  margin: 16px 0;
  padding-left: 32px;
}

.wiki-body li {
  margin: 8px 0;
}

/* Tabellen */
.wiki-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: #222;
}

.wiki-body td, .wiki-body th {
  padding: 10px;
  border: 1px solid #444;
  text-align: left;
}

.wiki-body th {
  background: #333;
  color: #ffda73;
  font-weight: 600;
}

.wiki-body tr:nth-child(even) td {
  background: #1a1a1a;
}

/* Bilder */
.wiki-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
}

/* Code & Pre */
.wiki-body code {
  background: #121212;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Consolas', 'Monaco', monospace;
  color: #f7d46b;
  font-size: 90%;
}

.wiki-body pre {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
}

.wiki-body pre code {
  background: transparent;
  padding: 0;
  color: #e5b95c;
}

/* Blockquotes */
.wiki-body blockquote {
  border-left: 4px solid #e5b95c;
  padding-left: 16px;
  margin: 16px 0;
  color: #bbb;
  font-style: italic;
}

/* Sidebar */
.wiki-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Infobox */
.wiki-infobox {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
}

.wiki-infobox-header {
  background: linear-gradient(180deg, #f7d46b, #bb8a24);
  color: #1a0d00;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wiki-infobox-toggle {
  background: none;
  border: none;
  color: #1a0d00;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}

.wiki-infobox-toggle:hover {
  background: rgba(0,0,0,0.1);
}

.wiki-infobox-body {
  padding: 16px;
}

.wiki-infobox-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-infobox-list li {
  padding: 8px 0;
  border-bottom: 1px solid #2a2a2a;
}

.wiki-infobox-list li:last-child {
  border-bottom: none;
}

.wiki-infobox-list a {
  color: #e5b95c;
  text-decoration: none;
  transition: color 0.2s;
}

.wiki-infobox-list a:hover {
  color: #ffda73;
}

/* Collapsible */
.wiki-infobox-body.collapsed {
  display: none;
}

/* Wiki-Subsection */
.wiki-subsection {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}

.wiki-subsection-title {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Breadcrumbs */
.wiki-breadcrumbs {
  margin-bottom: 16px;
  font-size: 14px;
  color: #888;
}

.wiki-breadcrumbs a {
  color: #e5b95c;
  text-decoration: none;
}

.wiki-breadcrumbs a:hover {
  text-decoration: underline;
}

.wiki-breadcrumbs span {
  color: #666;
  margin: 0 8px;
}

/* Footer */
.wiki-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #2a2a2a;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.wiki-footer a {
  color: #e5b95c;
  text-decoration: none;
  margin: 0 8px;
}

.wiki-footer a:hover {
  text-decoration: underline;
}

/* Statistik-Tabelle in Sidebar */
.wiki-stats-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.wiki-stats-table td {
  padding: 4px 0;
  border: none;
  color: #ccc;
}

.wiki-stats-table td:first-child {
  color: #e5b95c;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .wiki-page-layout {
    padding: 16px;
  }
  
  .wiki-main {
    padding: 20px;
  }
  
  .wiki-title {
    font-size: 2rem;
  }
  
  .wiki-tabs {
    flex-wrap: wrap;
  }
  
  .wiki-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
}

