/*
 * ============================================
 * RESPONSIVE STYLES - GUILD VORTEX
 * ============================================
 * 
 * Media Queries para adaptação responsiva
 * 
 * Paleta de Cores Oficial:
 * --vortex-cyan-bright: #68D3ED
 * --vortex-blue-electric: #3993D6
 * --vortex-blue-navy: #1C327D
 * --vortex-purple-mystic: #6555D4
 * --vortex-silver-metallic: #DBEAF1
 * --vortex-blue-dark-base: #14204F
 * --vortex-blue-royal: #2351AE
 * --vortex-gray-blue: #707B8E
 * --vortex-lavender-light: #A5ABD4
 * --vortex-black-deep: #090D26
 * 
 * Adaptado da identidade Fenix para Vortex
 * ============================================
 */

@media (max-width: 1280px) {
  .blocos-tabela-gm {
    align-items: center;
    flex-basis: 100%;
    flex-direction: row;
    margin-bottom: -8px;
  }

  .blocos-tabela-gm h2.memberlist-title {
    width: 58px;
  }

  .principal-inicial {
    flex: 1;
  }

  .principal-baus {
    flex: 0 0 340px;
  }
}

@media (max-width: 1024px) {
  .blocos-tabela {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 768px) {
  .principal:not(.com-posicionamento) {
    flex-direction: row;
  }

  .principal:not(.com-posicionamento) .principal-inicial {
    flex: 2;
  }

  .principal:not(.com-posicionamento) .principal-baus {
    flex: 1;
  }
}

@media (max-width: 767px) {
  /* Notificações no mobile */
  .notification-header-icon #notification_list {
    position: fixed;
    top: 50px;
    right: 10px;
    left: 10px;
    min-width: auto;
    width: calc(100% - 20px);
    max-width: 100%;
  }

  .com-posicionamento .header h1{
    font-size:1.2rem!important;
    margin-right:0!important;
  }
  .bloco-inicial-acao-img{
    display:none!important;
  }
  .bloco-inicial-acao,
  .controle table.table1 tbody th,
  .controle table.table1 td,
  .guild-tag,
  .jogador-bar,
  .topo .memberlist-title,
  h3.memberlist-title,
  table.table1 tbody th,
  table.table1 td {
    text-align: center;
    font-size: 90%;
  }

  table.responsive td>dfn {
    display: block !important;
    margin-bottom: 2px;
    font-style: normal;
  }

  .codebox,
  .rank-img,
  blockquote,
  blockquote blockquote,
  blockquote.uncited {
    margin: 10px 0;
  }

  body {
    background-size: auto !important;
  }

  .anuncioLinks,
  .modal-box,
  .viewtopic_wrapper .inner {
    flex-direction: column;
  }

  .viewtopic_wrapper .inner .postprofile {
    flex: 1;
    width: 100% !important;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .viewtopic_wrapper .inner .postprofile>dt {
    display: flex;
    margin: 0;
    align-items: center;
    grid-gap: 10px;
  }

  .viewtopic_wrapper .inner .postprofile>.profile-rank {
    width: auto;
  }

  .viewtopic_wrapper dd.profile-rank>img {
    max-width: 100% !important;
    height: auto;
    max-height: 56px;
  }

  .has-profile .post-buttons {
    right: 0 !important;
    top: 30px !important;
  }

  .particles_container {
    height: auto !important;
  }

  .blocos {
    flex-wrap: column;
  }

  .rank-img {
    display: block;
  }

  .controle .topo,
  .headerbar,
  .headerbar .inner-wrap,
  .topo {
    justify-content: center;
  }

  .anuncioLink {
    margin-bottom: 10px;
    margin-left: 0;
    width: auto;
  }

  .content li:has(.tags_pos),
  .content li:has(.tags_pos2) {
    width: 100%;
  }

  .abas-conteudo .bloco-form-validacao,
  .headerbar,
  .headerbar .inner-wrap,
  .particles_container {
    min-height: auto !important;
  }

  .topo .memberlist-title {
    margin-bottom: 0 !important;
    min-width: 100%;
    margin-right: 0;
  }

  .botaoCanalVoz {
    right: 0;
    background-size: contain;
    width: 142px !important;
    height: 142px !important;
  }


  .blocos-painel {
    margin: -5px !important;
  }

  #site-description {
    width: 180px !important;
    margin-bottom: 30px;
  }

  .controle .bloco-form {
    flex-direction: column;
    align-items: stretch !important;
  }

  .controle .bloco-form>* {
    flex: 1;
    max-width: 100%;
    min-width: auto;
  }

  .blocos-iniciais {
    grid-template-columns: repeat(1, 1fr);
  }

  .bloco-topo {
    justify-content: center;
    flex-direction: column;
  }

  .blocos-panel.abas {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .abas-opcoes {
    flex: 0 !important;
    min-width: auto !important;
  }

  .abas-opcoes a {
    width: 36px;
  }

  .abas-opcoes a>i {
    font-size: 90%;
  }

  .abas-opcoes a>span {
    display: none;
  }

  .abas-conteudo {
    flex: 1;
    min-width: auto !important;
  }

  .abas-conteudo .bloco-form-linha {
    flex-direction: column;
    align-items: stretch !important;
    row-gap: 5px !important;
  }

  .tabela-check {
    min-width: 16px;
  }

  .bloco-form-check {
    width: 16px;
    min-width: 16px;
    height: 16px;
  }

  .bloco-form-check+label {
    position: relative;
    top: -2px;
  }

  .bloco-form-check::before {
    width: 8px;
    height: 8px;
  }

  .bloco-form-check:checked::before {
    font-size: 100% !important;
  }

  .login_container {
    width: 80%;
  }

  .principal {
    flex-direction: column;
  }

}

@media (max-width: 540px) {
  .tabela-opcoes .bloco-form-linha .bloco-form-item {
    max-width: none;
  }

  .tabela-opcoes {
    flex-wrap: wrap;
    align-items: stretch;
    flex-direction: row;
  }

  /* Wrapper pesquisa + filtro sempre visível */
  .tabela-opcoes .tabela-pesquisa-wrapper {
    flex: 1 1 100%;
    order: 1;
  }
  
  /* Botão de filtros - visível no mobile, só ícone */
  .tabela-opcoes .btn-toggle-filtros {
    display: flex !important;
    flex: 0 0 44px;
    padding: 8px;
  }
  .tabela-opcoes .btn-toggle-filtros span {
    display: none;
  }
  
  /* Container de filtros - escondido por padrão no mobile */
  .tabela-opcoes .tabela-filtros-container {
    display: none;
    flex: 1 1 100%;
    order: 3;
  }
  
  .tabela-opcoes .tabela-filtros-container.aberto {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(104, 211, 237, 0.3);
  }
  
  .tabela-opcoes .tabela-filtros-container .bloco-form-linha {
    flex-wrap: wrap;
  }

  .tabela-opcoes .tabela-itens {
    flex: 1;
    flex-direction: column;
    min-width: auto;
    flex-wrap: wrap;
    justify-content: stretch;
    align-items: stretch;
  }

  .tabela-opcoes .tabela-itens .tabela-form {
    display: flex;
    flex-direction: column;
  }

  .tabela-opcoes .tabela-itens .tabela-form .bloco-form-acao {
    flex: 1;
    min-width: 100% !important;
  }

  .bloco-form-tabela {
    margin-bottom: 10px;
  }

  .bloco-topo>h1 {
    font-size: 1.4rem;
  }

  .bloco-topo-opcoes {
    justify-content: center;
  }

  .login_container {
    width: 94%;
  }
}