/*Ranking*/

#left_bg_top_ranking {
  color: #FFFFFF;
  padding-left: 5%;
  padding-top: 5%;
  padding-bottom: 5%;
  position: relative;
  margin: 0px auto;
}

#top_rank_bgrank {
  background-image: url(../images/gb_rank_top.png);
  background-repeat: no-repeat;
  width: 20px;
  height: 106px;
  position: absolute;
  right: 10%;
  top: 10%;
}

.left_bg_topo_outro_rank {
  width: 108px;
  height: 31px;
  position: relative;
  margin-bottom: 2px;
}

.top_rank_gender {
  width: 30px;
  height: 29px;
  position: absolute;
  left: 32px;
  top: 2px;
}

.top_rank_nivel {
  width: 15px;
  height: 25px;
  position: absolute;
  left: 63px;
  top: 2px;
}

.top_rank_guild {
  height: 12px;
  position: absolute;
  left: 83px;
  top: 1px;
  color: #FFA27B;
  font-size: 12px;
  font-family: Tahoma;
}

.top_rank_nickname {
  height: 12px;
  position: absolute;
  left: 83px;
  top: 14px;
  color: #FFFFFF;
  font-size: 12px;
  font-family: Tahoma;
}

.top_rank_pos {
  width: 30px;
  height: 29px;
  position: absolute;
  left: 2px;
  top: 2px;
}

.gb-hall-small {
  height: 35px;
  width: 35px;
}

.gds {
  height: 25px;
  -o-object-fit: contain;
  object-fit: contain;
  width: 28px;
}

.fl,
.gds {
  display: inline-block;
}

.ranking-number {
  background-color: rgb(156, 73, 5);
  border-radius: .25rem;
  bottom: 0;
  color: #ffffff;
  font-size: .75rem;
  left: 50%;
  line-height: 1;
  /*padding: .125rem .25rem;*/
  padding: 0 .125rem;
  position: absolute;
  transform: translateX(-50%);
}

/* destaca a cor do TOP1*/
#left_bg_top_ranking>.left_bg_topo_outro_rank:nth-child(2)>.top_rank_pos>.ranking-number {
  background-color: rgb(255, 102, 0) !important;
}

/*------------------FIM RANKING------------------*/


/*------------------HEADER DO CONTEUDO------------------*/

.main-card-gb {
  background: #ffffff;
  border-radius: 8px;
  max-width: 1200px;
  overflow: hidden;
  margin-bottom: 25px;
  margin-left: 2vh;
  margin-right: 2vh;
  border: solid 2px var(--color-accent-cyan);
}

/*HEADERS DO TOPO*/
.about-header {
  background: linear-gradient(135deg, #f79000 25%, #f9d900 100%);
  color: white;
}

.ranking-header {
  background: linear-gradient(135deg, #B33F3F 25%, #DB6767 100%);
  color: white;
}

.register-header {
  background: linear-gradient(135deg, #b3853f 25%, #dba567 100%);
  color: white;
}

.news-header {
  background: linear-gradient(135deg, #655991 15%, #9189ac 100%);
  color: white;
}

.download-header {
  background: linear-gradient(135deg, #d4af37 45%, #ffe27f 100%);
  color: white;
}

.guild-header {
  background: linear-gradient(135deg, #91598c 35%, #cc99c7 100%);
  color: white;
}

/*FIM HEADERS DO TOPO*/

.gbl-header-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gbl-logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gbl-char-img {
  width: 70px;
  height: 42px;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.gbl-char-img img {
  width: 65px;
  /*-webkit-transform: scaleX(-1);
  transform: scaleX(-1);*/
}

.gbl-title {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}


.gbl-breadcrumb {
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 15px 20px;
}

.breadcrumb-link {
  color: var(--color-emerald-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--color-emerald-blue);
  text-decoration: none;
}

.breadcrumb-current {
  color: #666;
  font-weight: 500;
}

.about-content {
  background: white;
}

/*NAV*/

.gbl-nav {
  background: #e3f2fd;
  border-radius: 4px;
  padding: 15px 20px;
  margin: 0 20px;
  display: flex;
  gap: 50px;
}

.gbl-nav-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.gbl-nav-column a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0;
}

.gbl-nav-column a:hover {
  color: var(--color-emerald-blue);
  text-decoration: none;
}

.gbl-nav-column a.active {
  color: var(--color-emerald-blue);
  font-weight: bold;
  position: relative;
  padding-left: 15px;
}

.gbl-nav-column a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid #ff4444;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}


/*Conteudo*/

.gbl-content {
  background: white;
}

.gbl-main-content {
  padding: 15px;
  background: white;
}

.section-content {
  padding: 30px;
  background: white;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-emerald-blue);
  padding-bottom: 10px;
}

.section-text {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 20px;
}

/*----------------END HEADER DO CONTEUDO-----------------*/


/*----------------RANKING CONTEUDO-----------------*/

.ranking-table {
  margin: 3vh;
  overflow: hidden;
}

.ranking-table thead tr {
  background: repeating-linear-gradient(45deg, #ffeb99 0 15px, #ffd85e 15px 30px);
  /*background: repeating-linear-gradient(45deg, #DB6767 0 15px, #B33F3F 15px 30px);*/
  border-radius: 10px;
}

.ranking-table thead {
  position: relative;
}

.ranking-table thead th {
  background: transparent;
  border-bottom: none;
}

.ranking-table thead::before {
  content: "";
  position: absolute;
  margin-top: 0.5vh;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 8px;
  pointer-events: none;
}

/* arredonda só extremos */
.ranking-table th:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.ranking-table th:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.rank-text-link {
  color: var(--color-emerald-blue) !important;
  text-decoration: none;
}

.rank-text-link:hover {
  color: var(--color-emerald-blue) !important;
  text-shadow: 0 0 1px var(--color-accent-cyan);
}

/*Estilização do ranking*/
.ranking-table tbody td {
  background: transparent;
}

.ranking-table tbody tr {
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
}

.ranking-table tbody tr:hover {
  background: rgb(255, 252, 239);
  /* ou o mesmo fundo que já usas */
  box-shadow: inset 0 0 10px rgba(255, 217, 0, 0.103);
}

/*faz isso pro hover nao ficar grudado no thread*/
.ranking-table tbody tr:nth-child(1) {
  border-top: 2px solid transparent;
}

/*.ranking-table tbody tr:nth-child(1):hover {*/
.ranking-table tbody tr.rank-top1:hover {
  background: linear-gradient(to top, #fff6a0, #ffd54a);
  box-shadow: inset 0 0 5px #ffd54a;
  border-top: 2px solid transparent;
}

/*.ranking-table tbody tr:nth-child(2):hover {*/
.ranking-table tbody tr.rank-top2:hover {
  background: linear-gradient(to top, #f5f5f5, #dcdcdc);
  box-shadow: inset 0 0 5px #dcdcdc;
}

/*.ranking-table tbody tr:nth-child(3):hover {*/
.ranking-table tbody tr.rank-top3:hover {
  background: linear-gradient(to top, #ffdeb7, #e2c4a3);
  box-shadow: inset 0 0 5px #e2c7aa;
}

/*Fim Estilização do ranking*/

/*----------------END RANKING CONTEUDO-----------------*/



/* PAGINACAO*/

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 20px auto 40px auto;
}

.pagination {
  background: linear-gradient(to bottom, #ffe680, #ffcb2b 45%, #ffffff 100%);
  background-size: 100% 100%;
  border: 2px solid #d2a600;
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 4px 10px;
}

/* Itens */
.pagination .page-item {
  margin: 0 3px;
}

/* Botão base */
.pagination .page-link {
  border: none;
  color: #3a2500;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

/* Hover */
.pagination .page-link:hover {
  background: linear-gradient(to top, #ffe580, #fff7c2);
  color: #111;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Ativo */
.pagination .page-item.active .page-link {
  background: linear-gradient(to top, #ffce38, #fff3b0);
  color: #432a00;
  border: 1px solid #d39e02;
  box-shadow: inset 0 0 4px rgba(255, 180, 0, 0.9);
}

/* Desabilitado */
.pagination .page-item.disabled .page-link {
  opacity: 0.6;
  pointer-events: none;
}

/************PAGINACAO************/


/*DROP DOWN DA LINGUAGEM*/

/* Estilo do <label> (o ícone de globo) */
.form-label[for="language-switcher"] {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2px !important;
  cursor: pointer;
}

.lang-form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: var(--color-bg-dark);
  border: 1px solid var(--color-accent-cyan-dark);
  color: var(--color-text-normal);
  border-radius: 5px;
  padding: 6px 30px 6px 1px;
  font-size: 0.95rem;
  cursor: pointer;

  /* --- MUDANÇA AQUI: Usar seu SVG --- */
  background-image: url('../images/svg/dropdown.svg');
  /* Caminho relativo */
  /* --- FIM DA MUDANÇA --- */

  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 32px 24px;
  /* Ajuste o tamanho se o seu SVG tiver outro tamanho nativo */
}

/* Estilo das <option> (para o menu dropdown) */
.lang-form-select option {
  background-color: var(--color-dark-green);
  color: #FFF;
  cursor: pointer;
}

/*--------------Pagina de cadastro--------------*/

/* Estilo para a sidebar de registro (Coluna 2) */
.register-sidebar-bg {
  background-image: url(../images/bg-side-register.png);
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  /* Garante que a coluna tenha altura mínima, mesmo que vazia */
  min-height: 400px;
}

/* Estilo para os ícones de gênero no formulário */
.gender-icon {
  width: 28px;
  /* Tamanho igual ao do Top 5 */
  height: 25px;
  /* Tamanho igual ao do Top 5 */
  border-radius: 4px;
}

/* Melhora o espaçamento dos labels de gênero */
.gender-field {
  display: flex;
  flex-wrap: wrap;
  /* Permite quebrar linha em ecrãs pequenos */
  gap: 1.5rem;
  /* Espaço entre "Masculino" e "Feminino" */
}

/* Ajusta o alinhamento do label do radio/imagem */
.gender-field label {
  cursor: pointer;
}

/* O form passa é o container relativo dos personagens */
#register-container {
  position: relative;
  overflow: visible;
  /* evita que as imagens escapem */
  z-index: 2;
}

/* estilo base das imagens */
#register-container .form-character {
  position: absolute;
  bottom: -5px;
  /* ligeiramente sobreposto à borda */
  width: 60px;
  /* ajusta o tamanho pro teu design */
  pointer-events: none;
  /* não atrapalha cliques */
  z-index: 5;
  /* acima do fundo do form */
  user-select: none;
  opacity: 0.95;
  transition: transform .3s ease-in-out;
}

/* posicionamento individual */
#register-container .char-left {
  left: -15px;
}

#register-container .char-right {
  right: -15px;
}

#register-container .char-top {
  top: -50px;
  /* sobe acima da borda */
  left: 50%;
  /* centraliza horizontalmente */
  transform: translateX(-50%);
  /* ajusta o centro */
  width: 120px;
  /* opcional: um pouco maior pro destaque */
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
  /* brilho dourado */
}

#register-container .form-character {
  animation: floatGunbound 3s ease-in-out infinite;
}

/* efeito de brilho da borda */
#register-container .form-character {
  filter: drop-shadow(0 0 10px rgba(231, 231, 231, 0.8));
}

/* responsivo */
@media (max-width: 768px) {
  #register-container .form-character {
    width: 30px;
  }

  #register-container .char-top {
    width: 80px;
  }
}

/*--------------Pagina de cadastro--------------*/


/*--------------Estilos para o Sistema de Notícias--------------*/
.news-container {
  /* 1. Remove o padding (que definimos antes) para 
       que o 'panel-header' interno ocupe 100% do container */
  padding: 0;

  /* 2. Centraliza o container na página */
  margin-left: auto;
  margin-right: auto;

  /* 3. Em telas pequenos, ocupa 100% da largura */
  width: 100%;
}

/* * 4. Em ecrãs médios e grandes (desktops), 
 * aplicamos a largura de 60% que você pediu.
 */
@media (min-width: 768px) {

  /* Ponto de quebra 'md' do Bootstrap */
  .news-container {
    width: 80%;
  }
}

.news-panel-header {

  background: repeating-linear-gradient(45deg, rgb(159, 158, 163) 0 15px, #655991 15px 30px);
  border-radius: 8px 8px 0 0;
  padding-left: 1%;
  padding-right: 1%;
  position: relative;
  overflow: hidden;

}

.news-panel-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}


/* Estilo para o TÍTULO da notícia dentro do 'panel-header' */
.news-title-header {
  font-family: 'Archivo Narrow', sans-serif;
  font-size: 1.4rem;
  /* Um pouco maior que o texto normal do painel */
  font-weight: 700;
  color: #FFF;
  line-height: 1.2;
  z-index: 10;
}

.news-title-header .news-category {
  margin-right: 10px;
  z-index: 1;
}

/* Estilo para a data no 'panel-header' */
.news-date-header {
  font-size: 0.9rem;
  color: #FFF;
  flex-shrink: 0;
  /* Impede que a data quebre linha */
  margin-left: 15px;
  z-index: 10;
}

/* Estilo para o CORPO da notícia (dentro do 'content-panel-3d')
  A classe 'content-panel-3d' já fornece o padding de 20px 
  e o fundo escuro.
*/
.news-content-body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: none;
  border: 3px solid #655991;
  box-shadow: inset 0 0 15px #65599170;
  border-radius: 0 0 8px 8px;
  padding: 30px 30px 30px 30px;
  color: #333;
}

/* Garante que o HTML (<p>, <br>) do admin funcione bem */
.news-content-body p {
  margin-left: 1rem;
  margin-bottom: 1rem;
  font-size: 12px;
  text-align: justify;
}

.news-content-body br {
  display: block;
  margin-bottom: 0.8rem;
  content: "";
}

.news-footer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.212);
  text-align: right;
}

/* Limpa os estilos antigos que não são mais usados */
.news-item,
.news-header,
.news-content {
  border: none;
  padding: 0;
  margin: 0;
}

.news-category {
  font-size: 0.9rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
}

/* Cores das Categorias */
.news-category.news {
  background-color: #007bff;
  color: white;
}

.news-category.event {
  background-color: #28a745;
  color: white;
}

.news-category.maintenance {
  background-color: #ffc107;
  color: #333;
}

/*--------------FIM Estilos para o Sistema de Notícias--------------*/

/*--------------INICIO Estilos para o Download--------------*/
/* Ajuste global da área de download */
.download-container {
  background: radial-gradient(circle at top, #161b2e 0%, #0b132b 100%);
  color: #fff;
  padding: 40px 20px;
  font-family: 'Orbitron', 'Poppins', sans-serif;
}

/* --- Estrutura geral de seções --- */
.download-container .main-container-download {
  margin-bottom: 2.5rem;
}

.download-container .panel-header-download {
  background: linear-gradient(90deg, #d4af37 0%, #ffe27f 30%, #d4af37 100%);
  border-radius: 10px 10px 0 0;
  padding: 10px 18px;
  color: #3a2500;
  font-weight: 800;
  font-size: 1.2rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 0px;
  margin-bottom: -1%;
}

/* Container do conteúdo 3D */
.download-container .content-panel-download {
  background: linear-gradient(180deg, #1b243b 0%, #141a2a 80%);
  border: 3px solid #d4af37;
  border-top: none;
  border-radius: 0 0 15px 15px;
  padding: 25px;
  box-shadow:
    0 0 10px rgba(255, 215, 0, 0.4),
    inset 0 0 6px rgba(255, 255, 255, 0.2);
}

/* --- Caixa de download --- */
.download-container .download-box {
  background: linear-gradient(145deg, #202840, #121826);
  padding: 30px 25px;
  border-radius: 0 0 12px 12px;
  border: 2px solid rgba(212, 175, 55, 0.8);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.15);
}

.download-container .download-gif {
  max-width: 230px;
  border-radius: 10px;
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

/* Metadados do jogo */
.download-container .ui-card-meta {
  font-size: 1rem;
  font-weight: 600;
  color: #ffd966;
  text-shadow: 0 0 5px rgba(255, 255, 200, 0.3);
}

/* --- Botão de Download --- */
.download-container .gb-btn.btc-darkpurple {
  background: linear-gradient(180deg, #7d4eff 0%, #4619b3 90%);
  border: 2px solid #bb9aff;
  border-radius: 8px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(125, 78, 255, 0.5);
  transition: all 0.2s ease-in-out;
}

.download-container .gb-btn.btc-darkpurple:hover {
  transform: scale(1.05);
  background: linear-gradient(180deg, #a27cff 0%, #5b28c0 100%);
  box-shadow: 0 0 16px rgba(175, 130, 255, 0.75);
  color: #fffde6;
}

/* --- Tabela de requisitos --- */
.download-container .requirements-table {
  border-collapse: separate;
  border-spacing: 0 6px;
  background: transparent;
}

.download-container .requirements-table thead th {
  background: #2b304a;
  color: #ffd966;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.download-container .requirements-table tbody td {
  background: #121826;
  border: none;
  padding: 0.75rem 1rem;
  color: #eaeaea;
  font-size: 0.95rem;
}

.download-container .requirements-table tbody tr:hover td {
  background: rgba(255, 240, 180, 0.08);
}

/* --- responsividade --- */
@media (max-width: 768px) {
  .download-container .download-gif {
    max-width: 160px;
    margin: 0 auto;
    display: block;
  }

  .gb-btn.btc-darkpurple {
    width: 100%;
  }
}

/*--------------FIM Estilos para o Download--------------*/