/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-image: url('../imagens/fundo_whatsapp.jpg6');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  background-attachment: fixed;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
}

body {
  background-image: url('../imagens/fundo_whatsapp.jpg6');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  background-attachment: fixed;
  font-family: Arial, sans-serif;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* HEADER */
.header-site {
  background: #2c3e50;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-site {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-site a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.menu-site a.btn-head {
  color: #fff;
  background: #339af0;
  padding: 8px 12px;
  margin-left: 10px;
  text-decoration: none;
  border-radius: 5px;
}

.menu-site a.btn-head:hover {
  background: #339af0;
}

/* MENU MOBILE */
.menu-mobile {
  display: none;
  background: #2c3e50;
  padding: 10px;
  text-align: center;
}

.menu-mobile button {
  background: #339af0;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.logo-mobile a {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.enviar-grupo-mobile {
  padding: 6px 10px;
  font-size: 13px;
  margin-left: auto;
  background: #339af0;
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
}

/* Estilo da barra lateral mobile */
.mobile-sidebar {
  background: #34495e;
  padding: 20px;
  text-align: left;
  color: #fff;
  height: 100vh;
  overflow-y: auto;
}

.mobile-sidebar a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.mobile-sidebar a:hover {
  background: #339af0;
  color: #fff;
}

/* Destaque para Categorias */
.mobile-sidebar .categoria-destaque {
  background: #3498db;
  border-radius: 5px;
  margin: 15px 0;
  text-align: center;
  font-weight: bold;
  border-bottom: none !important;
}

.mobile-sidebar .categoria-destaque:hover {
  background: #2980b9;
}

.mobile-sidebar .categoria-destaque i {
  margin-left: 5px;
}

.mobile-sidebar .btn-head {
  background: #339af0;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
}

/* Formulário de busca no menu lateral */
.mobile-search-form {
  margin: 20px 0;
}

.mobile-search-form label {
  color: #fff;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.mobile-search-form input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
}

/* 🔥 NOVO BLOCO ADICIONADO: Imagem no topo do menu lateral */
.imagem-menu-lateral {
  text-align: center;
  margin: 20px 0 10px;
}

.imagem-menu-lateral img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Esconder lupa antiga no mobile */
@media screen and (max-width: 768px) {
  .search-toggle {
    display: none !important;
  }

  .barra-busca {
    display: none !important;
  }

  .menu-mobile {
    display: block;
  }
}

/* CONTEÚDO */
main.conteudo-site,
.conteudo-site {
  flex: 1 0 auto;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

/* FOOTER */
.footer-site {
  background: #2c3e50;
  color: #fff;
  font-size: 13px;
  padding: 20px 15px;
  margin-top: auto;
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-footer p {
  text-align: justify;
  text-align-last: center;
}

.footer-site a {
  color: #339af0;
  text-decoration: none;
  margin: 0 5px;
}

/* GRUPOS */
h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #339af0;
}

.categoria-link {
  color: #339af0;
  text-decoration: none;
  font-weight: 500;
}

.grupo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.grupo-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #339af0;
  overflow: hidden;
}

/* Efeito de brilho apenas nas bordas - DESKTOP */
@media (min-width: 769px) {
  .grupo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .grupo-card:hover::after {
    border-color: rgba(26, 188, 156, 0.5);
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.5);
  }
}

.grupo-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.grupo-card h3 {
  font-size: 15px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.grupo-card p {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.grupo-card button {
  margin-top: 15px;
  padding: 10px;
  background: #339af0;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.grupo-card button:hover {
  background: #339af0;
}

/* ANÚNCIOS */
.ad-container {
  grid-column: 1 / -1;
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: #f0f0f0;
  border-radius: 8px;
  order: 0;
}

.ad-container img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* PREMIUM E VIP */
.ribbon {
  width: 100px;
  height: 100px;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 140px;
  padding: 5px 0;
  background: #e74c3c;
  color: #fff;
  font-weight: bold;
  text-align: center;
  transform: rotate(45deg);
  top: 15px;
  right: -40px;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ribbon-premium span {
  background: #27ae60;
}

.paginacao {
  text-align: center;
  margin-top: 30px;
}

.paginacao a {
  margin: 0 5px;
  padding: 6px 12px;
  border-radius: 5px;
  background: #ccc;
  color: #fff;
  text-decoration: none;
}

.paginacao a.ativo {
  background: #339af0;
}

/* ESTILIZAÇÃO DOS HR-BORDER */
.hr-border {
  border-bottom: 1px solid rgba(44, 62, 80, 0.25);
  margin: 15px 0;
  padding-bottom: 15px;
}

/* ESTILO EXCLUSIVO GRUPO */
.grupo-detalhe {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  position: relative;
}

.grupo-detalhe-img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.grupo-nome {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  display: block;
}

.grupo-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  display: block;
}

.grupo-data {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 15px;
  display: block;
}

.no-margin {
  margin-bottom: 0!important;
}

.margin-25 {
  margin-bottom: 0px!important;
}

.grupo-categoria {
  display: inline-block;
  color: #339af0;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}

.grupo-botao {
  margin-top: 15px;
  display: inline-block;
  padding: 12px 24px;
  background: #339af0;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
}

.grupo-botao:hover {
  background: #339af0;
}

.grupo-box {
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.grupo-box h2 {
  font-size: 18px;
  text-align: center;
  color: #339af0;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 6px;
}

.grupo-box p {
  text-align: center;
  font-size: 15px;
  color: #333;
}

/* CSS CATEGORIAS */
.categorias-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0;
}

.categoria-card {
  background: linear-gradient(to bottom right, #ffffff, #f9f9f9);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #2c3e50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.categoria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.cat-icon {
  font-size: 28px;
  color: #339af0;
  margin-bottom: 12px;
}

.cat-nome {
  font-size: 16px;
  font-weight: bold;
  color: #339af0;
  margin-bottom: 6px;
}

.cat-grupos {
  font-size: 13px;
  color: #555;
}

/* CSS PAGINAS */
.pagina-conteudo {
  color: #2c3e50;
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.pagina-conteudo h1 {
  text-align: center;
  color: #339af0;
  margin-bottom: 10px;
  font-weight: 700;
}

.pagina-conteudo h2,
.pagina-conteudo h3,
.pagina-conteudo h4 {
  text-align: left;
  color: #339af0;
  margin-bottom: 10px;
  font-weight: 700;
}

.pagina-conteudo p {
  margin-bottom: 10px;
}

.pagina-conteudo ul,
.pagina-conteudo ol {
  padding-left: 25px;
  margin-bottom: 10px;
}

.pagina-conteudo a {
  color: #3498db;
  text-decoration: underline;
}

.pagina-conteudo strong {
  font-weight: bold;
}
.pagina-conteudo em {
  font-style: italic;
}

/* CSS CONTATO */
.contato-formulario {
  max-width: 1200px;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contato-formulario label {
  font-weight: bold;
  margin-bottom: 5px;
  color: #2c3e50;
  display: block;
}

.contato-formulario input,
.contato-formulario textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.contato-formulario textarea {
  resize: vertical;
  min-height: 120px;
}

.contato-formulario button {
  width: 100%;
  background: #339af0;
  color: #fff;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background .3s ease;
}

.contato-formulario button:hover {
  background: #339af0;
}

.contato-formulario h2 {
  text-align: center;
  color: #339af0;
  margin-bottom: 30px;
}

/* ENTRAR */
.conta-form-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 30px;
}

.conta-titulo {
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  color: #2c3e50;
}

.conta-form {
  display: flex;
  flex-direction: column;
}

.conta-form label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #34495e;
}

.conta-form input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border 0.3s ease;
}

.conta-form input:focus {
  border-color: #339af0;
  outline: none;
}

.conta-form button {
  padding: 12px;
  background: #339af0;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.conta-form button:hover {
  background: #339af0;
}

.conta-links {
  text-align: center;
  margin-top: 15px;
}

.conta-links a {
  display: inline-block;
  margin: 5px 10px;
  color: #339af0;
  text-decoration: none;
  font-size: 14px;
}

.conta-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */
@media (min-width: 769px) {
  .menu-mobile {
    display: none !important;
  }

  .logo-site {
    display: block;
  }

  .logo-mobile {
    display: none;
  }

  /* Centralização dos anúncios de banner */
  .grupo-detalhe .ad-container {
    max-width: 728px;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  .menu-site {
    display: none;
  }

  .menu-mobile {
    display: block;
    background: #2c3e50;
    color: #fff;
  }

  .menu-mobile .container-header {
    padding: 0 20px !important;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .container-header {
    padding: 0 !important;
  }

  .menu-mobile {
    padding: 5px 0!important;
  }
    
  .mobile-flex {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 10px;
  }

  .menu-toggle,
  .search-toggle {
    flex: 0 0 10%;
    background: #339af0;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-mobile {
    flex: 1 1 80%;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: clamp(18px, 6vw, 26px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-sidebar {
    position: fixed;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: #34495e;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .mobile-sidebar.show {
    left: 0;
  }

  .mobile-sidebar a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
  }

  .barra-busca {
    display: none;
    background: #ecf0f1;
    padding: 10px;
    text-align: center;
  }

  .barra-busca.show {
    display: block;
    margin-bottom: -5px;
  }

  .barra-busca input {
    width: 90%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  .menu-mobile a {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin: 8px 0;
  }

  /* GRUPO GRID MOBILE */
  .grupo-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .grupo-card {
    width: 95%;
    max-width: 400px;
    margin: 0 auto;
    border: 2px solid #339af0;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    padding: 25px 20px;
  }

  .grupo-card img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }

  /* Anúncios no mobile - entre os cards sem puxar conteúdo */
  .ad-container {
    order: 0;
    margin: 15px auto;
    width: 95%;
    max-width: 400px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 12px;
  }

  .footer-site {
    padding: 20px;
  }

  .container-footer {
    padding: 0;
  }

  .menu-fechar {
    text-align: right;
  }

  .menu-fechar button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
  }

  .container-footer a {
    line-height: 2rem;
  }

  .logo-site {
    display: none !important;
  }

  /* CARDS DA PÁGINA "MEUS GRUPOS" */
  .grupo-grid .grupo-card1 {
    width: 95% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    border: 2px solid #339af0;
  }

  .grupo-card1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    gap: 15px;
  }

  .grupo-card1 .grupo-esquerda {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  
  .grupo-card1 .grupo-info {
    flex-direction: column;
    gap: 8px;
  }
  
  .grupo-card1 .grupo-botoes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: center;
  }
  
  .grupo-card1 .grupo-botoes .btn-acao,
  .grupo-card1 .grupo-botoes a.btn-acao {
    width: 90%;
    max-width: 250px;
  }
}

/* --- BRILHO DIFUSO HOVER DESKTOP --- */
@media (min-width: 769px) {
  .grupo-card:hover {
    box-shadow: 0 0 25px rgba(0, 136, 204, 0.35), 0 0 40px rgba(0, 136, 204, 0.2);
  }
}
/* BARRA DE CATEGORIAS MOBILE */
.categoria-mobile-balao {
    width: 90%;
    max-width: 400px;
    margin: 15px auto;
}

.categoria-mobile-select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #339af0;
    border-radius: 30px;
    background-color: white;
    color: #34495e;
    font-size: 14px;
    font-weight: 600;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231abc9c'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* TÍTULO PRINCIPAL */
.titulo-principal {
    font-size: 24px;
    color: #2c3e50;
    text-align: center;
    margin: 20px 0;
    padding: 0 15px;
    font-weight: 700;
}

/* GRUPOS E PAGINAÇÃO (MANTIDO) */
.grupo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 15px;
    margin: 20px 0;
}

.grupo-card {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* [MANTENHA O RESTO DO SEU CSS EXISTENTE PARA GRUPOS E PAGINAÇÃO] */

/* RESPONSIVIDADE */
@media (min-width: 768px) {
    .categoria-mobile-balao {
        display: none;
    }
    
    .titulo-principal {
        font-size: 28px;
    }
}

/* Imagem de fundo para dispositivos móveis */
@media (max-width: 768px) {
  body {
    background-image: url('../imagens/fundo_whatsapp.jpg');
  }
}

/* ======================================================== */
/* === CSS FINAL - OBJETIVO: [Logo] [Busca] [Botões] === */
/* ======================================================== */

/* 1. Esconder elementos do desktop em telas pequenas */
.logo-site img {
  display: none;
}
.search-form {
  display: none;
}

/* 2. Aplica os estilos apenas em telas de desktop (992px ou mais) */
@media (min-width: 992px) {

  /* --- Layout Principal --- */
  /* Divide o cabeçalho em dois blocos: logo na esquerda, menu na direita */
  .header-site .container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* --- Estilo do Logo com Favicon --- */
  .logo-site img {
    display: inline-block;
    height: 28px;
    width: 28px;
    margin-right: 10px;
  }
  .logo-site a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
  }

  /* --- Bloco da Direita (Busca + Botões) --- */
  /* Alinha a busca e os botões na mesma linha */
  .menu-site {
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre a busca e os botões */
  }

  /* --- Estilo da Barra de Busca --- */
  .search-form {
    display: flex; /* Mostra a busca no desktop */
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
  }
  .search-form input[type="text"] {
    border: none;
    background: transparent;
    padding: 8px 15px;
    color: #fff;
    width: 200px; /* Largura da busca */
    outline: none;
  }
  .search-form input[type="text"]::placeholder {
    color: #ccc;
  }
  .search-form button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 15px;
    cursor: pointer;
  }
}
/* --- ESTILO PARA LINKS DO RODAPÉ EM DUAS LINHAS --- */

.footer-links-container {
  text-align: center;
  margin-top: 20px;
}

.footer-links-row {
  margin-bottom: 8px; /* Espaço entre as duas linhas de links */
}

/* Adiciona o traço (-) como separador depois de cada link */
.footer-links-row a::after {
  content: ' - ';
  margin: 0 5px; /* Espaçamento do separador */
  text-decoration: none;
  color: inherit; /* Usa a mesma cor do texto do parágrafo */
}

/* Remove o traço do último link de cada linha */
.footer-links-row a:last-child::after {
  content: '';
  margin: 0;
}