MediaWiki:Common.css: mudanças entre as edições

De Edda World Wiki
Ir para navegação Ir para pesquisar
Sem resumo de edição
Sem resumo de edição
 
(40 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 1: Linha 1:
/* Logo */
/* ============================================================
#p-logo a {
  EDDA WORLD WIKI — Common.css COMPLETO
    background-size: contain !important;
  Versão responsiva · Desktop, tablet e celular
    background-repeat: no-repeat !important;
  ============================================================ */
    width: 160px !important;
 
    height: 160px !important;
/* === VARIÁVEIS ============================================ */
:root {
  --edda-primary:  #5ECFA8;
  --edda-primary2: #2E8F6E;
  --edda-dark:    #241832;
  --edda-accent:  #A8E8D0;
  --edda-border:  rgba(94, 207, 168, 0.18);
  --edda-text:    #1A2640;
  --edda-muted:    #8B8298;
  --edda-surface:  #FBF8F2;
  --edda-radius:  10px;
}
 
/* === FUNDO GERAL ========================================== */
body {
  background: #FBF8F2 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #1A2640 !important;
}
 
/* === TOPBAR (barra escura do topo) ======================== */
#mw-head,
.vector-header,
div#mw-head {
  background: #241832 !important;
  border-bottom: 1px solid rgba(94,207,168,0.25) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}
 
/* Logo oculto */
#p-logo { display: none !important; }
 
/* Abas: Página / Discussão / Ler / Editar */
#p-namespaces,
#p-views,
div#p-namespaces,
div#p-views {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
#p-namespaces li,
#p-namespaces li a,
#p-namespaces li.selected,
#p-namespaces li.selected a,
#p-views li,
#p-views li a,
#p-views li.selected,
#p-views li.selected a,
.vector-tab-noaction,
.vector-tab-noaction a,
div#p-namespaces ul li,
div#p-views ul li {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#p-namespaces li a,
#p-views li a,
.vector-tab-noaction a {
  color: rgba(255,255,255,0.55) !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  transition: all 0.15s !important;
}
#p-namespaces li.selected a,
#p-views li.selected a {
  color: #A8E8D0 !important;
  background: rgba(94,207,168,0.15) !important;
  border-bottom: 2px solid #5ECFA8 !important;
}
#p-namespaces li a:hover,
#p-views li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
  text-decoration: none !important;
}
#left-navigation { margin-left: 230px !important; }
 
/* Campo de pesquisa */
#searchInput,
input[name="search"],
.cdx-text-input__input {
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 4px 14px !important;
  font-size: 12px !important;
}
#searchInput::placeholder { color: rgba(255,255,255,0.35) !important; }
#searchButton, .searchButton {
  background: #5ECFA8 !important;
  border-radius: 0 20px 20px 0 !important;
  border: none !important;
  color: #fff !important;
}
 
/* === SIDEBAR ============================================== */
#mw-panel {
  position: absolute !important;
  width: 220px !important;
  left: 0 !important;
  top: 0 !important;
  padding-top: 0 !important;
  background: #fff !important;
  border-right: 1px solid rgba(94,207,168,0.12) !important;
}
.vector-column-start {
  width: 220px !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  border-right: 1px solid rgba(94,207,168,0.12) !important;
}
#column-one {
  width: 220px !important;
  background: #fff !important;
}
.portal h3,
#p-tb h3,
#p-navigation h3 {
  color: #5ECFA8 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(94,207,168,0.15) !important;
  padding-bottom: 4px !important;
  margin-bottom: 5px !important;
}
.portal li a,
#p-tb li a,
#p-navigation li a {
  color: #8B8298 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  line-height: 1.8 !important;
  transition: color 0.15s !important;
}
.portal li a:hover,
#p-tb li a:hover,
#p-navigation li a:hover {
  color: #5ECFA8 !important;
}
.portal {
  margin: 6px 0 !important;
  padding: 0 8px !important;
}
 
/* === CONTEÚDO PRINCIPAL =================================== */
#content, div#content {
  margin-left: 260px !important;
  margin-right: 8px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  background: #fff !important;
  border: 1px solid rgba(94,207,168,0.15) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 6px rgba(94,207,168,0.07) !important;
  padding: 24px 28px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#column-content { margin-left: 250px !important; }
#mw-head-base { margin-left: 230px !important; }
 
/* === PROTEÇÃO CONTRA CORTES (todas as páginas) =============
  Impede que itens de grid/flex estourem o card e sejam
  cortados. O texto quebra em vez de sumir.              */
.mw-parser-output {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.mw-parser-output div,
.mw-parser-output span,
.mw-parser-output a {
  min-width: 0;
}
.mw-parser-output img {
  max-width: 100%;
  height: auto;
}
 
/* === TIPOGRAFIA =========================================== */
h1.firstHeading,
#firstHeading {
  color: #0C1A36 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #5ECFA8 !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
}
h2 {
  color: #0C1A36 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(94,207,168,0.2) !important;
  padding-bottom: 6px !important;
  margin: 24px 0 12px !important;
}
h3 {
  color: #2E8F6E !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 16px 0 8px !important;
}
a, a:visited { color: #2E8F6E !important; text-decoration: none !important; }
a:hover { color: #5ECFA8 !important; text-decoration: underline !important; }
a.new { color: #E05252 !important; }
 
/* === TABELAS ============================================== */
table.wikitable {
  border-collapse: collapse !important;
  width: 100% !important;
  font-size: 13px !important;
  margin: 14px 0 !important;
  border: 1px solid rgba(94,207,168,0.18) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
table.wikitable th {
  background: #241832 !important;
  color: #A8E8D0 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(94,207,168,0.2) !important;
}
table.wikitable td {
  padding: 8px 14px !important;
  border: 1px solid rgba(94,207,168,0.1) !important;
  background: #fff !important;
  color: #1A2640 !important;
}
table.wikitable tr:nth-child(even) td { background: #F2FBF7 !important; }
table.wikitable tr:hover td { background: #EAF8F1 !important; }
 
/* === TOC ================================================== */
#toc, .toc {
  background: #FBF8F2 !important;
  border: 1px solid rgba(94,207,168,0.18) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 12.5px !important;
}
#toc h2, .toc h2 {
  font-size: 11px !important;
  color: #8B8298 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
#toc a, .toc a { color: #2E8F6E !important; font-size: 12px !important; }
 
/* === CATEGORIAS =========================================== */
#catlinks {
  background: #FBF8F2 !important;
  border: 1px solid rgba(94,207,168,0.15) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  margin-top: 24px !important;
}
 
/* === FOOTER =============================================== */
#footer-info-lastmod,
li#footer-info-lastmod { display: none !important; }
.page-Página_principal #footer-places { display: none !important; }
.page-Página_principal #footer-info  { display: none !important; }
#footer, .mw-footer {
  background: #241832 !important;
  border-top: 1px solid rgba(94,207,168,0.1) !important;
  padding: 10px 20px !important;
  min-height: unset !important;
}
#footer-places li,
#footer-info li,
#footer li {
  display: inline !important;
  color: rgba(255,255,255,0.45) !important;
  font-size: 11px !important;
}
#footer-places li::after { content: " · "; color: rgba(255,255,255,0.2); }
#footer-places li:last-child::after { content: ""; }
#footer a { color: rgba(255,255,255,0.45) !important; }
#footer a:hover { color: #5ECFA8 !important; }
#footer-icons { display: none !important; }
 
/* === EDIT BOX ============================================= */
#wpTextbox1 {
  border: 1px solid rgba(94,207,168,0.25) !important;
  border-radius: 6px !important;
  padding: 10px !important;
  font-size: 13px !important;
  font-family: "Courier New", monospace !important;
}
 
/* === BOTÕES =============================================== */
.mw-ui-progressive,
.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button {
  background: #5ECFA8 !important;
  border-color: #2E8F6E !important;
  color: #fff !important;
  border-radius: 6px !important;
}
 
/* === SCROLLBAR ============================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(94,207,168,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5ECFA8; }
 
/* ============================================================
  COMPONENTES
  ============================================================ */
.edda-grid { display: grid; gap: 12px; margin: 16px 0; }
.edda-grid > * { min-width: 0; }
.edda-grid-2 { grid-template-columns: repeat(2, 1fr); }
.edda-grid-3 { grid-template-columns: repeat(3, 1fr); }
.edda-grid-4 { grid-template-columns: repeat(4, 1fr); }
 
.edda-card {
  background: #fff;
  border: 1px solid rgba(94,207,168,0.16);
  border-radius: 10px;
  padding: 16px;
  display: block;
  text-decoration: none !important;
  color: #1A2640 !important;
  transition: all 0.18s;
  min-width: 0;
}
.edda-card:hover {
  border-color: #5ECFA8;
  box-shadow: 0 4px 16px rgba(94,207,168,0.14);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.edda-card-icon { font-size: 24px; margin-bottom: 8px; }
.edda-card-title { font-size: 13px; font-weight: 700; color: #0C1A36; margin-bottom: 4px; }
.edda-card-desc  { font-size: 11px; color: #8B8298; line-height: 1.5; }
 
.edda-hero {
  background: #241832;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
}
.edda-hero-title { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.edda-hero-title .accent { color: #5ECFA8; }
.edda-hero-sub { color: rgba(255,255,255,0.5); font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }
.edda-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.edda-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.75);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
/* Barra de informações: colunas automáticas em vez de 6 fixas */
.edda-infobar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  background: #fff;
  border: 1px solid rgba(94,207,168,0.18);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.edda-infobar-cell { padding: 10px 12px; border-right: 1px solid rgba(94,207,168,0.1); border-bottom: 1px solid rgba(94,207,168,0.1); text-align: center; min-width: 0; }
.edda-infobar-cell:last-child { border-right: none; }
.edda-infobar-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #8B8298; margin-bottom: 3px; }
.edda-infobar-value { font-size: 12px; font-weight: 700; color: #0C1A36; }
.edda-infobar-value.blue { color: #2E8F6E; }
.edda-section-header { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
.edda-section-title { font-size: 12.5px; font-weight: 700; color: #0C1A36; white-space: nowrap; }
.edda-section-line { flex: 1; height: 1px; background: rgba(94,207,168,0.15); }
.edda-banner {
  background: #241832;
  border: 1px solid rgba(94,207,168,0.22);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.edda-banner-icon { font-size: 22px; }
.edda-banner-title { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.edda-banner-sub { color: rgba(255,255,255,0.45); font-size: 11px; line-height: 1.4; }
.edda-banner-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.edda-banner-tag {
  background: rgba(94,207,168,0.18);
  border: 1px solid rgba(94,207,168,0.35);
  color: #A8E8D0;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.edda-infobox {
  float: right;
  clear: right;
  background: #fff;
  border: 1px solid rgba(94,207,168,0.18);
  border-radius: 10px;
  margin: 0 0 16px 20px;
  width: 280px;
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
}
.edda-infobox-title {
  background: #241832;
  color: #A8E8D0;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
}
.edda-infobox table { width: 100%; border-collapse: collapse; }
.edda-infobox td { padding: 7px 12px; border-bottom: 1px solid rgba(94,207,168,0.08); font-size: 12px; }
.edda-infobox td:first-child { font-weight: 700; color: #8B8298; width: 45%; }
.edda-infobox tr:last-child td { border-bottom: none; }
.edda-drops { width: 100%; border-collapse: collapse; font-size: 12px; border: 1px solid rgba(94,207,168,0.15); border-radius: 8px; overflow: hidden; }
.edda-drops thead th { background: #241832; color: #A8E8D0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 12px; }
.edda-drops tbody td { padding: 7px 12px; border-bottom: 1px solid rgba(94,207,168,0.07); color: #1A2640; }
.edda-drops tbody tr:hover td { background: #EAF8F1; }
.drop-rare    { color: #9B87D4; font-weight: 700; }
.drop-uncommon { color: #D97706; font-weight: 600; }
.drop-common  { color: #8B8298; }
/* ============================================================
  RESPONSIVIDADE
  ============================================================ */
/* --- Telas médias (notebook / tablet deitado) --------------- */
@media (max-width: 1100px) {
  #content, div#content {
    margin-left: 236px !important;
    padding: 20px 20px !important;
  }
  #column-content { margin-left: 226px !important; }
  .edda-grid-4 { grid-template-columns: repeat(3, 1fr); }
}
/* --- Tablet ------------------------------------------------- */
@media (max-width: 900px) {
  .edda-grid-3, .edda-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
/* --- Celular / tela estreita --------------------------------
  A barra lateral sai da frente e vira um bloco no topo;
  o conteúdo passa a ocupar a largura inteira.            */
@media (max-width: 760px) {
  #mw-panel {
    position: static !important;
    width: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(94,207,168,0.12) !important;
    padding: 8px 12px !important;
  }
  .vector-column-start,
  #column-one {
    width: auto !important;
    border-right: none !important;
  }
  #left-navigation,
  #mw-head-base,
  #column-content {
    margin-left: 0 !important;
  }
  #content, div#content {
    margin: 8px 6px !important;
    padding: 16px 14px !important;
    border-radius: 8px !important;
  }
  h1.firstHeading, #firstHeading { font-size: 19px !important; }
  /* Tabelas largas rolam na horizontal em vez de cortar */
  table.wikitable,
  .edda-drops {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .edda-infobox {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
  }
  .edda-section-title { white-space: normal; }
  .edda-banner-tags { margin-left: 0; }
  .edda-hero { padding: 24px 18px; }
}
/* --- Celular pequeno ---------------------------------------- */
@media (max-width: 600px) {
  .edda-grid-2, .edda-grid-3, .edda-grid-4 { grid-template-columns: 1fr; }
  /* Grades escritas direto na página (style="...grid-template-columns...")
    viram uma coluna, para nada ficar espremido ou cortado. */
  .mw-parser-output [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }


#p-logo {
  /* Grades das páginas com <style> próprio (padrão prefixo-grid,
     height: 160px !important;
    prefixo-stats etc.) passam a ter colunas automáticas. */
  .mw-parser-output [class*="-grid"]:not([class*="edda-grid"]),
  .mw-parser-output [class*="-stats"],
  .mw-parser-output [class*="-stat-bar"],
  .mw-parser-output [class*="-summary"],
  .mw-parser-output [class*="-compare"],
  .mw-parser-output [class*="-factions"] {
     grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }
}
}

Edição atual tal como às 02h20min de 5 de outubro de 2026

/* ============================================================
   EDDA WORLD WIKI — Common.css COMPLETO
   Versão responsiva · Desktop, tablet e celular
   ============================================================ */

/* === VARIÁVEIS ============================================ */
:root {
  --edda-primary:  #5ECFA8;
  --edda-primary2: #2E8F6E;
  --edda-dark:     #241832;
  --edda-accent:   #A8E8D0;
  --edda-border:   rgba(94, 207, 168, 0.18);
  --edda-text:     #1A2640;
  --edda-muted:    #8B8298;
  --edda-surface:  #FBF8F2;
  --edda-radius:   10px;
}

/* === FUNDO GERAL ========================================== */
body {
  background: #FBF8F2 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #1A2640 !important;
}

/* === TOPBAR (barra escura do topo) ======================== */
#mw-head,
.vector-header,
div#mw-head {
  background: #241832 !important;
  border-bottom: 1px solid rgba(94,207,168,0.25) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}

/* Logo oculto */
#p-logo { display: none !important; }

/* Abas: Página / Discussão / Ler / Editar */
#p-namespaces,
#p-views,
div#p-namespaces,
div#p-views {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
#p-namespaces li,
#p-namespaces li a,
#p-namespaces li.selected,
#p-namespaces li.selected a,
#p-views li,
#p-views li a,
#p-views li.selected,
#p-views li.selected a,
.vector-tab-noaction,
.vector-tab-noaction a,
div#p-namespaces ul li,
div#p-views ul li {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
#p-namespaces li a,
#p-views li a,
.vector-tab-noaction a {
  color: rgba(255,255,255,0.55) !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  transition: all 0.15s !important;
}
#p-namespaces li.selected a,
#p-views li.selected a {
  color: #A8E8D0 !important;
  background: rgba(94,207,168,0.15) !important;
  border-bottom: 2px solid #5ECFA8 !important;
}
#p-namespaces li a:hover,
#p-views li a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
  text-decoration: none !important;
}
#left-navigation { margin-left: 230px !important; }

/* Campo de pesquisa */
#searchInput,
input[name="search"],
.cdx-text-input__input {
  border-radius: 20px !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 4px 14px !important;
  font-size: 12px !important;
}
#searchInput::placeholder { color: rgba(255,255,255,0.35) !important; }
#searchButton, .searchButton {
  background: #5ECFA8 !important;
  border-radius: 0 20px 20px 0 !important;
  border: none !important;
  color: #fff !important;
}

/* === SIDEBAR ============================================== */
#mw-panel {
  position: absolute !important;
  width: 220px !important;
  left: 0 !important;
  top: 0 !important;
  padding-top: 0 !important;
  background: #fff !important;
  border-right: 1px solid rgba(94,207,168,0.12) !important;
}
.vector-column-start {
  width: 220px !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  border-right: 1px solid rgba(94,207,168,0.12) !important;
}
#column-one {
  width: 220px !important;
  background: #fff !important;
}
.portal h3,
#p-tb h3,
#p-navigation h3 {
  color: #5ECFA8 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid rgba(94,207,168,0.15) !important;
  padding-bottom: 4px !important;
  margin-bottom: 5px !important;
}
.portal li a,
#p-tb li a,
#p-navigation li a {
  color: #8B8298 !important;
  font-size: 12px !important;
  text-decoration: none !important;
  line-height: 1.8 !important;
  transition: color 0.15s !important;
}
.portal li a:hover,
#p-tb li a:hover,
#p-navigation li a:hover {
  color: #5ECFA8 !important;
}
.portal {
  margin: 6px 0 !important;
  padding: 0 8px !important;
}

/* === CONTEÚDO PRINCIPAL =================================== */
#content, div#content {
  margin-left: 260px !important;
  margin-right: 8px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  background: #fff !important;
  border: 1px solid rgba(94,207,168,0.15) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 6px rgba(94,207,168,0.07) !important;
  padding: 24px 28px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#column-content { margin-left: 250px !important; }
#mw-head-base { margin-left: 230px !important; }

/* === PROTEÇÃO CONTRA CORTES (todas as páginas) =============
   Impede que itens de grid/flex estourem o card e sejam
   cortados. O texto quebra em vez de sumir.               */
.mw-parser-output {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.mw-parser-output div,
.mw-parser-output span,
.mw-parser-output a {
  min-width: 0;
}
.mw-parser-output img {
  max-width: 100%;
  height: auto;
}

/* === TIPOGRAFIA =========================================== */
h1.firstHeading,
#firstHeading {
  color: #0C1A36 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #5ECFA8 !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
}
h2 {
  color: #0C1A36 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid rgba(94,207,168,0.2) !important;
  padding-bottom: 6px !important;
  margin: 24px 0 12px !important;
}
h3 {
  color: #2E8F6E !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 16px 0 8px !important;
}
a, a:visited { color: #2E8F6E !important; text-decoration: none !important; }
a:hover { color: #5ECFA8 !important; text-decoration: underline !important; }
a.new { color: #E05252 !important; }

/* === TABELAS ============================================== */
table.wikitable {
  border-collapse: collapse !important;
  width: 100% !important;
  font-size: 13px !important;
  margin: 14px 0 !important;
  border: 1px solid rgba(94,207,168,0.18) !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
table.wikitable th {
  background: #241832 !important;
  color: #A8E8D0 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(94,207,168,0.2) !important;
}
table.wikitable td {
  padding: 8px 14px !important;
  border: 1px solid rgba(94,207,168,0.1) !important;
  background: #fff !important;
  color: #1A2640 !important;
}
table.wikitable tr:nth-child(even) td { background: #F2FBF7 !important; }
table.wikitable tr:hover td { background: #EAF8F1 !important; }

/* === TOC ================================================== */
#toc, .toc {
  background: #FBF8F2 !important;
  border: 1px solid rgba(94,207,168,0.18) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 12.5px !important;
}
#toc h2, .toc h2 {
  font-size: 11px !important;
  color: #8B8298 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border: none !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
#toc a, .toc a { color: #2E8F6E !important; font-size: 12px !important; }

/* === CATEGORIAS =========================================== */
#catlinks {
  background: #FBF8F2 !important;
  border: 1px solid rgba(94,207,168,0.15) !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  margin-top: 24px !important;
}

/* === FOOTER =============================================== */
#footer-info-lastmod,
li#footer-info-lastmod { display: none !important; }
.page-Página_principal #footer-places { display: none !important; }
.page-Página_principal #footer-info   { display: none !important; }
#footer, .mw-footer {
  background: #241832 !important;
  border-top: 1px solid rgba(94,207,168,0.1) !important;
  padding: 10px 20px !important;
  min-height: unset !important;
}
#footer-places li,
#footer-info li,
#footer li {
  display: inline !important;
  color: rgba(255,255,255,0.45) !important;
  font-size: 11px !important;
}
#footer-places li::after { content: " · "; color: rgba(255,255,255,0.2); }
#footer-places li:last-child::after { content: ""; }
#footer a { color: rgba(255,255,255,0.45) !important; }
#footer a:hover { color: #5ECFA8 !important; }
#footer-icons { display: none !important; }

/* === EDIT BOX ============================================= */
#wpTextbox1 {
  border: 1px solid rgba(94,207,168,0.25) !important;
  border-radius: 6px !important;
  padding: 10px !important;
  font-size: 13px !important;
  font-family: "Courier New", monospace !important;
}

/* === BOTÕES =============================================== */
.mw-ui-progressive,
.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button {
  background: #5ECFA8 !important;
  border-color: #2E8F6E !important;
  color: #fff !important;
  border-radius: 6px !important;
}

/* === SCROLLBAR ============================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(94,207,168,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #5ECFA8; }

/* ============================================================
   COMPONENTES
   ============================================================ */
.edda-grid { display: grid; gap: 12px; margin: 16px 0; }
.edda-grid > * { min-width: 0; }
.edda-grid-2 { grid-template-columns: repeat(2, 1fr); }
.edda-grid-3 { grid-template-columns: repeat(3, 1fr); }
.edda-grid-4 { grid-template-columns: repeat(4, 1fr); }

.edda-card {
  background: #fff;
  border: 1px solid rgba(94,207,168,0.16);
  border-radius: 10px;
  padding: 16px;
  display: block;
  text-decoration: none !important;
  color: #1A2640 !important;
  transition: all 0.18s;
  min-width: 0;
}
.edda-card:hover {
  border-color: #5ECFA8;
  box-shadow: 0 4px 16px rgba(94,207,168,0.14);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.edda-card-icon { font-size: 24px; margin-bottom: 8px; }
.edda-card-title { font-size: 13px; font-weight: 700; color: #0C1A36; margin-bottom: 4px; }
.edda-card-desc  { font-size: 11px; color: #8B8298; line-height: 1.5; }

.edda-hero {
  background: #241832;
  border-radius: 10px;
  padding: 32px 28px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.edda-hero-title { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.edda-hero-title .accent { color: #5ECFA8; }
.edda-hero-sub { color: rgba(255,255,255,0.5); font-size: 12.5px; line-height: 1.6; margin-bottom: 16px; }
.edda-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.edda-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.75);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Barra de informações: colunas automáticas em vez de 6 fixas */
.edda-infobar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  background: #fff;
  border: 1px solid rgba(94,207,168,0.18);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
}
.edda-infobar-cell { padding: 10px 12px; border-right: 1px solid rgba(94,207,168,0.1); border-bottom: 1px solid rgba(94,207,168,0.1); text-align: center; min-width: 0; }
.edda-infobar-cell:last-child { border-right: none; }
.edda-infobar-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #8B8298; margin-bottom: 3px; }
.edda-infobar-value { font-size: 12px; font-weight: 700; color: #0C1A36; }
.edda-infobar-value.blue { color: #2E8F6E; }

.edda-section-header { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
.edda-section-title { font-size: 12.5px; font-weight: 700; color: #0C1A36; white-space: nowrap; }
.edda-section-line { flex: 1; height: 1px; background: rgba(94,207,168,0.15); }

.edda-banner {
  background: #241832;
  border: 1px solid rgba(94,207,168,0.22);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
}
.edda-banner-icon { font-size: 22px; }
.edda-banner-title { color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.edda-banner-sub { color: rgba(255,255,255,0.45); font-size: 11px; line-height: 1.4; }
.edda-banner-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.edda-banner-tag {
  background: rgba(94,207,168,0.18);
  border: 1px solid rgba(94,207,168,0.35);
  color: #A8E8D0;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.edda-infobox {
  float: right;
  clear: right;
  background: #fff;
  border: 1px solid rgba(94,207,168,0.18);
  border-radius: 10px;
  margin: 0 0 16px 20px;
  width: 280px;
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
}
.edda-infobox-title {
  background: #241832;
  color: #A8E8D0;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: center;
}
.edda-infobox table { width: 100%; border-collapse: collapse; }
.edda-infobox td { padding: 7px 12px; border-bottom: 1px solid rgba(94,207,168,0.08); font-size: 12px; }
.edda-infobox td:first-child { font-weight: 700; color: #8B8298; width: 45%; }
.edda-infobox tr:last-child td { border-bottom: none; }

.edda-drops { width: 100%; border-collapse: collapse; font-size: 12px; border: 1px solid rgba(94,207,168,0.15); border-radius: 8px; overflow: hidden; }
.edda-drops thead th { background: #241832; color: #A8E8D0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 12px; }
.edda-drops tbody td { padding: 7px 12px; border-bottom: 1px solid rgba(94,207,168,0.07); color: #1A2640; }
.edda-drops tbody tr:hover td { background: #EAF8F1; }
.drop-rare     { color: #9B87D4; font-weight: 700; }
.drop-uncommon { color: #D97706; font-weight: 600; }
.drop-common   { color: #8B8298; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* --- Telas médias (notebook / tablet deitado) --------------- */
@media (max-width: 1100px) {
  #content, div#content {
    margin-left: 236px !important;
    padding: 20px 20px !important;
  }
  #column-content { margin-left: 226px !important; }
  .edda-grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* --- Tablet ------------------------------------------------- */
@media (max-width: 900px) {
  .edda-grid-3, .edda-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Celular / tela estreita --------------------------------
   A barra lateral sai da frente e vira um bloco no topo;
   o conteúdo passa a ocupar a largura inteira.            */
@media (max-width: 760px) {
  #mw-panel {
    position: static !important;
    width: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(94,207,168,0.12) !important;
    padding: 8px 12px !important;
  }
  .vector-column-start,
  #column-one {
    width: auto !important;
    border-right: none !important;
  }
  #left-navigation,
  #mw-head-base,
  #column-content {
    margin-left: 0 !important;
  }
  #content, div#content {
    margin: 8px 6px !important;
    padding: 16px 14px !important;
    border-radius: 8px !important;
  }
  h1.firstHeading, #firstHeading { font-size: 19px !important; }

  /* Tabelas largas rolam na horizontal em vez de cortar */
  table.wikitable,
  .edda-drops {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .edda-infobox {
    float: none;
    width: 100%;
    margin: 0 0 16px 0;
  }
  .edda-section-title { white-space: normal; }
  .edda-banner-tags { margin-left: 0; }
  .edda-hero { padding: 24px 18px; }
}

/* --- Celular pequeno ---------------------------------------- */
@media (max-width: 600px) {
  .edda-grid-2, .edda-grid-3, .edda-grid-4 { grid-template-columns: 1fr; }

  /* Grades escritas direto na página (style="...grid-template-columns...")
     viram uma coluna, para nada ficar espremido ou cortado. */
  .mw-parser-output [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Grades das páginas com <style> próprio (padrão prefixo-grid,
     prefixo-stats etc.) passam a ter colunas automáticas. */
  .mw-parser-output [class*="-grid"]:not([class*="edda-grid"]),
  .mw-parser-output [class*="-stats"],
  .mw-parser-output [class*="-stat-bar"],
  .mw-parser-output [class*="-summary"],
  .mw-parser-output [class*="-compare"],
  .mw-parser-output [class*="-factions"] {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  }
}