/* Minecraft Wiki-inspired styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #202122;
  background-color: #f8f9fa;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.wiki-header {
  background-color: #4a7c59;
  color: white;
  padding: 0;
  border-bottom: 3px solid #3d6549;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.site-title {
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.9;
}

.wiki-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.wiki-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.wiki-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Main content */
.wiki-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  min-height: calc(100vh - 150px);
  border-left: 1px solid #a2a9b1;
  border-right: 1px solid #a2a9b1;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9em;
  color: #54595d;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaecf0;
}

.breadcrumb a {
  color: #0645ad;
}

/* Page title */
.page-title {
  font-size: 1.8em;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

/* Article layout */
.wiki-article {
  position: relative;
}

/* Infobox */
.infobox {
  float: right;
  clear: right;
  width: 280px;
  margin: 0 0 20px 20px;
  background-color: #dfe8e4;
  border: 1px solid #a2a9b1;
  border-collapse: collapse;
  font-size: 0.9em;
}

.infobox-title {
  background-color: #4a7c59;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 8px 10px;
  font-size: 1.1em;
}

.infobox-image {
  background-color: #eef4f1;
  text-align: center;
  padding: 15px;
}

.infobox-image img {
  min-width: 100px;
  min-height: 100px;
  max-width: 150px;
  max-height: 150px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.infobox-data {
  width: 100%;
  border-collapse: collapse;
}

.infobox-data tr {
  border-top: 1px solid #a2a9b1;
}

.infobox-data th {
  background-color: #c8d6cf;
  text-align: left;
  padding: 6px 10px;
  width: 40%;
  font-weight: normal;
  vertical-align: top;
}

.infobox-data td {
  background-color: #eef4f1;
  padding: 6px 10px;
  vertical-align: top;
}

/* Rarity colors (Minecraft style) */
.rarity-common {
  color: #202122;
}

.rarity-uncommon {
  color: #ffff55;
  text-shadow: 1px 1px 0 #3f3f00;
}

.rarity-rare {
  color: #55ffff;
  text-shadow: 1px 1px 0 #003f3f;
}

.rarity-epic {
  color: #ff55ff;
  text-shadow: 1px 1px 0 #3f003f;
}

/* Effect type colors */
.effect-buff {
  color: #228b22;
}

.effect-debuff {
  color: #8b0000;
}

/* Wiki content */
.wiki-content {
  overflow: hidden;
}

.wiki-content h2 {
  font-size: 1.4em;
  font-weight: normal;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 3px;
  margin: 25px 0 10px 0;
}

.wiki-content h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin: 20px 0 8px 0;
}

.wiki-content p {
  margin: 0.5em 0 1em 0;
}

.wiki-content ul,
.wiki-content ol {
  margin: 0.5em 0 1em 1.6em;
}

.wiki-content li {
  margin: 0.3em 0;
}

/* Wiki-style tables */
.wiki-content table {
  border-collapse: collapse;
  margin: 1em 0;
}

.wiki-content table th,
.wiki-content table td {
  border: 1px solid #a2a9b1;
  padding: 6px 10px;
}

.wiki-content table th {
  background-color: #eaecf0;
}

/* Code/crafting recipe placeholder */
.wiki-content code {
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  border-radius: 2px;
  padding: 1px 4px;
  font-family: monospace;
}

.wiki-content pre {
  background-color: #f8f9fa;
  border: 1px solid #eaecf0;
  padding: 12px;
  overflow-x: auto;
  margin: 1em 0;
}

/* Footer */
.wiki-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: #54595d;
  font-size: 0.9em;
  border-top: 1px solid #a2a9b1;
  background-color: #f8f9fa;
}

/* Index page list styling */
.wiki-content ul.index-list {
  list-style: disc;
  margin: 0.5em 0 1em 0.5em;
}

.index-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0.25em 0;
}

.index-thumb {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .infobox {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .wiki-nav {
    width: 100%;
  }
}
