/* Estilos Gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Cabeçalho */
.header {
    background: #000;
    color: #fff;
    padding: 10px 0;
    border-bottom: #77aaff 3px solid;
    text-align: center;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.header .logo {
    height: 80px;
    margin-right: 15px;
    max-width: 100%;
}
.header h1 {
    margin: 0;
    font-size: 2.5em;
    text-align: center;
}

/* Menu de Navegação */
.navbar {
    background: #555;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-list li {
    margin: 0 15px;
}
.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: block;
}
.nav-list a:hover {
    color: #77aaff;
}

/* Seção de Destaque (Hero) */
.hero-section {
    background: url('../images/fundo_familia_estrada.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}
.hero-content h2 {
    font-size: 3.5em;
    margin: 0;
}

/* Seções Gerais */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    margin-bottom: 20px;
}
.section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
}
.section ul {
    list-style: none;
    padding: 0;
}
.section ul li {
    background: #eee;
    margin-bottom: 10px;
    padding: 10px;
    border-left: #77aaff 5px solid;
}
.section article {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.section article h3 {
    color: #444;
    margin-top: 0;
}
.section article a {
    color: #77aaff;
    text-decoration: none;
    font-weight: bold;
}

/* Layout em Grade para a Lista de Membros */
#membros-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Estilos Específicos para Card de Membros */
.section .membro-card {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border-left: #77aaff 5px solid;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.section .membro-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}
.section .membro-foto:hover {
    transform: scale(1.05);
}
.section .membro-info h3 {
    margin-top: 0;
    color: #333;
}
.section .membro-info p {
    margin: 5px 0;
}

/* Estilos para o Lightbox de Imagens */
#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
#lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
#lightbox-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #bbb;
}

/* Estilos do Painel Administrativo */
.admin-panel {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-top: 20px;
}
.admin-panel h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 25px;
    color: #343a40;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}
.admin-panel h3 {
    text-align: left;
    color: #495057;
    margin-top: 0;
}

/* Estilos para Formulários */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}

/* Botões */
.btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
    width: 100%;
}
.btn:hover {
    background: #0056b3;
}
.btn.btn-secondary {
    background-color: #6c757d;
}
.btn.btn-secondary:hover {
    background-color: #5a6268;
}

/* Mensagens de Feedback */
.message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    border: 1px solid transparent;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Tabela de Gerenciamento */
.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.members-table th, .members-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}
.members-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}
.members-table tr:nth-child(even) {
    background-color: #fdfdfd;
}
.members-table tr:hover {
    background-color: #f1f1f1;
}
.members-table .actions {
    display: flex;
    gap: 10px;
}
.members-table .actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}
.btn-edit {
    background-color: #007bff;
}
.btn-delete {
    background-color: #dc3545;
}

/* Container para botões de ação */
.action-buttons-container {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.action-buttons-container .btn {
    width: auto;
}

/* Container de filtro */
.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.filter-container .form-group {
    margin-bottom: 0;
}
.filter-container .btn {
    width: auto;
}

/* Estilo para o cabeçalho do mês na agenda */
.month-header {
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #77aaff;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.month-header:first-of-type {
    margin-top: 0;
}
#nome_encontro {
    text-transform: uppercase;
}

/* ============================================
   ESTILOS PARA NOTÍCIAS
   ============================================ */

/* Grid de notícias na página de listagem */
#noticias-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Preview de notícias na página inicial - 2 colunas */
#preview-noticias-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Container de notícia na listagem */
.noticia-item {
    margin-bottom: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.noticia-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Conteúdo interno da notícia */
.noticia-content {
    padding: 20px;
}

.noticia-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 20px;
}

/* Badge de destaque */
.badge-destaque {
    background: #d4af37;
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Imagens de notícias na listagem */
.noticia-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0;
}

/* Data da notícia */
.noticia-data {
    color: #888;
    font-size: 13px;
    margin: 10px 0 15px 0;
    font-style: italic;
}

/* Preview do texto */
.noticia-preview {
    color: #555;
    line-height: 1.6;
    margin: 15px 0 20px 0;
    font-size: 14px;
}

/* Botão leia mais */
.noticia-item .btn {
    display: inline-block;
    margin-top: 10px;
    width: auto;
}

/* Preview na página inicial */
#preview-noticias-list article {
    margin-bottom: 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

#preview-noticias-list article:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#preview-noticias-list .preview-content {
    padding: 15px;
}

#preview-noticias-list article img {
    max-width: 100%;
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    display: block;
}

#preview-noticias-list h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
}

#preview-noticias-list .noticia-data {
    color: #888;
    font-size: 12px;
    margin: 8px 0;
    font-style: italic;
}

#preview-noticias-list p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 10px 0;
}

/* Página de detalhes da notícia */
.noticia-completa {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.noticia-completa h2 {
    margin-top: 0;
    color: #333;
    font-size: 32px;
    line-height: 1.3;
}

/* Conteúdo da notícia completa */
.noticia-conteudo {
    line-height: 1.8;
    margin-top: 25px;
    white-space: pre-wrap;
    color: #444;
    font-size: 16px;
}

/* Galeria de imagens na página de detalhes */
.noticia-galeria {
    margin: 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.noticia-galeria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.noticia-galeria img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Se houver apenas uma imagem */
.noticia-galeria.single-image {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 25px auto;
}

.noticia-galeria.single-image img {
    height: 300px;
}

/* Tabela de gerenciamento de notícias */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

/* Botões pequenos na tabela */
.btn-small {
    padding: 5px 10px !important;
    font-size: 12px !important;
    margin: 2px !important;
    display: inline-block !important;
    width: auto !important;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Ajuste da célula de ações para manter botões em linha */
.data-table td:last-child {
    white-space: nowrap;
}

/* Rodapé */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* ========================================= */
/* Media Queries para Responsividade         */
/* ========================================= */

@media (max-width: 992px) {
    #noticias-list,
    #preview-noticias-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .noticia-galeria {
        grid-template-columns: 1fr;
    }
    
    .noticia-galeria img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px 0;
    }
    .header .container {
        flex-direction: column;
    }
    .header .logo {
        margin-right: 0;
        margin-bottom: 10px;
        height: 70px;
    }
    .header h1 {
        font-size: 1.8em;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    .nav-list li {
        margin: 5px 0;
        width: 100%;
    }
    .nav-list a {
        padding: 10px 0;
    }
    .hero-section {
        height: 300px;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .section h2 {
        font-size: 1.8em;
    }
    #membros-lista {
        grid-template-columns: 1fr;
    }
    #membros-lista .membro-card {
        flex-direction: column;
        text-align: center;
    }
    #membros-lista .membro-foto {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    #noticias-list,
    #preview-noticias-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .noticia-content,
    #preview-noticias-list .preview-content {
        padding: 15px;
    }
    
    .noticia-item h3,
    #preview-noticias-list h3 {
        font-size: 18px;
    }
    
    .noticia-completa {
        padding: 20px;
    }
    
    .noticia-completa h2 {
        font-size: 24px;
    }
    
    .noticia-galeria img {
        height: 220px;
    }
    
    .noticia-galeria.single-image img {
        height: 280px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 5px;
    }
    
    .btn-small {
        padding: 4px 8px !important;
        font-size: 11px !important;
    }
}
@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    .section .membro-card {
        flex-direction: column;
        text-align: center;
    }
    .section .membro-foto {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* ============================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-float a:hover {
    background-color: #128C7E;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   RESPONSIVIDADE PARA GERENCIAR CLUBES
   ============================================ */

/* Estilo para cabeçalho da página */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    margin: 0;
    flex: 1;
}

/* Container dos cards mobile */
.clubes-cards {
    display: grid;
    gap: 20px;
}

/* Card individual */
.clube-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
}

.clube-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cabeçalho do card */
.clube-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.clube-brasao {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.clube-info {
    flex: 1;
}

.clube-info h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.clube-cidade {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* Corpo do card */
.clube-card-body {
    margin-bottom: 15px;
}

.clube-detail {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.clube-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: bold;
    color: #495057;
    min-width: 130px;
    flex-shrink: 0;
}

.detail-value {
    color: #666;
    flex: 1;
}

/* Ações do card */
.clube-card-actions {
    display: flex;
    gap: 10px;
}

.btn-mobile {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: white;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-mobile.btn-edit {
    background-color: #007bff;
}

.btn-mobile.btn-edit:hover {
    background-color: #0056b3;
}

.btn-mobile.btn-delete {
    background-color: #dc3545;
}

.btn-mobile.btn-delete:hover {
    background-color: #c82333;
}

/* Responsividade */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-header h2 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .page-header .btn {
        width: 100%;
    }
    
    .clubes-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .clube-card {
        padding: 15px;
    }
    
    .clube-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .clube-brasao {
        width: 80px;
        height: 80px;
    }
    
    .clube-info h3 {
        font-size: 1.1rem;
    }
    
    .clube-detail {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .clube-card-actions {
        flex-direction: column;
    }
    
    .btn-mobile {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVIDADE PARA EDITAR CLUBE
   ============================================ */

/* Container do formulário */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Preview de imagens */
.image-preview {
    margin: 15px 0;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ações do formulário */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
        margin: 0 10px;
    }
    
    /* Form rows viram colunas em mobile */
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 20px;
    }
    
    /* Ações do formulário em coluna */
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    /* Imagens preview menores em mobile */
    .image-preview img {
        max-width: 100%;
        max-height: 300px;
    }
    
    /* Inputs maiores para mobile (evita zoom no iOS) */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    
    /* Select mais fácil de usar em mobile */
    .form-group select {
        padding: 14px;
        background-position: right 10px center;
    }
    
    /* Mensagens mais visíveis */
    .message {
        font-size: 1rem;
        padding: 15px;
    }
    
    /* Título da página menor */
    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 15px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group small {
        font-size: 0.8rem;
    }
    
    .image-preview img {
        max-height: 250px;
    }
    
    /* Botões mais confortáveis para tocar */
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Melhorias visuais para input de arquivo */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #ced4da;
    border-radius: 5px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #007bff;
    background-color: #e7f1ff;
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* Texto de ajuda (small) mais legível */
.form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    line-height: 1.4;
}