/* css/style-anuncio.css */

/* --- Barra de Anúncios --- */
.ad-bar-container {
    width: 100%;
    max-width: 1000px;
    margin: 25px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.ad-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ad-bar-header h3 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: #fff;
    letter-spacing: 1px;
}

.anuncie-aqui-btn {
    padding: 8px 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    background-color: #04AF16; /* Verde do site */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.anuncie-aqui-btn:hover {
    background-color: #059c15;
}

.ads-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.ad-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #04AF16;
    position: relative;
    font-family: 'Roboto', sans-serif;
    overflow: hidden; /* Garante que o link cubra toda a área */
}

.ad-item a {
    text-decoration: none;
    color: inherit;
    display: block; /* Faz o link preencher o item */
}

.ad-title {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    margin: 0 0 5px 0;
}

.ad-description {
    font-size: 14px;
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}

.ad-report-button {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 11px;
    color: #777;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 2; /* Fica acima do link do anúncio */
}

.ad-report-button:hover {
    color: #f44336;
    text-decoration: underline;
}

/* --- Janela Modal de Anúncio --- */
.ad-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.ad-modal-content {
    background: #282828;
    margin: 8% auto;
    padding: 25px 30px;
    border: 1px solid #444;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.ad-modal-close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ad-modal-close-btn:hover,
.ad-modal-close-btn:focus {
    color: #fff;
}

.ad-modal-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    color: #fff;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.ad-form-group {
    margin-bottom: 20px;
}

.ad-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: bold;
}

.ad-form-group select,
.ad-form-group input[type="text"],
.ad-form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #121212;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    box-sizing: border-box;
}

.ad-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.no-blogs-message {
    background-color: rgba(255, 204, 0, 0.1);
    border: 1px solid #ffcc00;
    padding: 15px;
    border-radius: 5px;
    color: #ffcc00;
}
.no-blogs-message a {
    color: #fff;
    font-weight: bold;
    text-decoration: underline;
}

.ad-preview-section {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.ad-preview-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ccc;
}

/* Reutilizando o estilo do ad-item para a pré-visualização */
#ad-preview {
    min-height: 80px;
}

.ad-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.ad-modal-btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

.publish-btn { background-color: #04AF16; color: white; }
.edit-btn { background-color: #ffc107; color: black; }
.delete-btn { background-color: #f44336; color: white; }

.ad-modal-btn:hover {
    opacity: 0.9;
}

#ad-feedback-message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none;
}

#ad-feedback-message.success {
    background-color: rgba(4, 175, 22, 0.2);
    color: #04AF16;
}

#ad-feedback-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.banner-central{
    display: flex;
    justify-content: center;
    
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .ads-wrapper {
        grid-template-columns: 1fr; /* Apenas uma coluna no celular */
    }

    .ad-modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* css/style-anuncio.css */
 

 /* ... other styles ... */
 

 .ad-report-button {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 9px;
  color: #777;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 2; /* Fica acima do link do anúncio */
 }
 

 .ad-report-button:hover {
  color: #faa19b;
  text-decoration: underline;
  font-size: 10px;
 }
 

 /* ... other styles ... */
 

 /* --- Responsividade --- */
 @media (max-width: 768px) {
  .ads-wrapper {
  grid-template-columns: 1fr; /* Apenas uma coluna no celular */
  }
 

  .ad-modal-content {
  margin: 20% auto;
  width: 95%;
  }
 

  /* Ajuste para o botão de denunciar no modo celular */
  .ad-item {
  overflow: visible; /* Permite que o botão "vaze" se necessário para ficar visível */
  }
 

  .ad-report-button {
  position: relative; /* Muda para relative para seguir o fluxo do documento no mobile */
  float: right; /* Alinha à direita */
  margin-top: 5px; /* Adiciona um pouco de espaço acima */
  margin-right: 0; /* Remove a margem direita fixa */
  bottom: auto; /* Reseta a posição inferior */
  z-index: 10; /* Garante que fique acima de outros elementos */
  font-size: 9px;
  padding: 8px;
  }
 }
 

 @keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
 }