/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header */
header {
    background: #FFFFFF;
    color: #000000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #0099FF;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-container {
    width: 80px;
    height: 80px;
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header h1 {
    text-align: center;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #000000;
}

header p {
    text-align: center;
    font-size: 1.1em;
    margin-top: 10px;
    color: #0099FF;
    font-weight: 500;
}

/* Navigation */
nav {
    background-color: #000000;
    padding: 15px 0;
    border-bottom: 2px solid #0099FF;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 4px;
}

nav a:hover {
    color: #0099FF;
    background-color: rgba(0,153,255,0.1);
}

/* Main Section */
.section {
    padding: 40px 0;
    min-height: 70vh;
}

.admin-panel {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-panel h2 {
    color: #000000;
    margin-bottom: 20px;
    border-bottom: 3px solid #0099FF;
    padding-bottom: 10px;
}

.admin-panel h3 {
    color: #333;
    margin: 30px 0 20px 0;
    font-size: 1.5em;
}

/* Filter Container */
.filter-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0099FF;
    box-shadow: 0 0 5px rgba(0,153,255,0.3);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #0099FF 0%, #0077CC 100%);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,153,255,0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #0077CC 0%, #0055AA 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,153,255,0.4);
}

.btn-secondary {
    background-color: #666;
}

.btn-secondary:hover {
    background-color: #555;
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Encontros List */
#encontros-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.encontro-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.encontro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,153,255,0.3);
    border-color: #0099FF;
}

.encontro-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.encontro-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.encontro-content h4 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.encontro-info {
    color: #666;
    margin: 8px 0;
    font-size: 0.95em;
}

.encontro-info strong {
    color: #333;
}

.encontro-descricao {
    color: #555;
    margin-top: 15px;
    line-height: 1.5;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.encontro-descricao-resumo {
    color: #666;
    margin-top: 10px;
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-saiba-mais {
    margin-top: auto;
    padding-top: 15px;
    width: 100%;
    text-align: center;
}

/* Imagens Carousel */
.encontro-imagens {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
}

.encontro-imagens img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.encontro-imagens img:hover {
    transform: scale(1.1);
}

/* Lightbox */
#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#lightbox-overlay.active,
#lightbox-overlay.visible {
    display: flex;
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #0099FF;
}

/* Form de Cadastro */
.cadastro-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-full {
    grid-column: 1 / -1;
}

.file-input-wrapper {
    border: 2px dashed #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-input-wrapper:hover {
    border-color: #0099FF;
    background-color: rgba(0,153,255,0.05);
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-label {
    display: block;
    color: #666;
    font-size: 1em;
}

#preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
}

.preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.remove-preview:hover {
    background-color: #cc0000;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 2px solid #0099FF;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

/* Detalhes do Encontro */
.detalhes-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0099FF;
}

.info-item strong {
    display: block;
    color: #000;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.info-item p {
    color: #666;
    margin: 0;
    font-size: 1em;
}

.detalhes-descricao {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.detalhes-descricao h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.detalhes-descricao p {
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
}

.detalhes-galeria {
    margin: 30px 0;
}

.detalhes-galeria h3 {
    color: #000;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.galeria-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid #ddd;
}

.galeria-image:hover {
    transform: scale(1.05);
    border-color: #0099FF;
}

.encontro-descricao-resumo {
    color: #666;
    margin-top: 10px;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
    }
    
    header p {
        font-size: 0.9em;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-container .form-group {
        width: 100%;
    }
    
    .filter-container .form-group:last-child {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .filter-container .form-group:last-child .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    #encontros-list {
        grid-template-columns: 1fr;
    }
    
    .admin-panel {
        padding: 20px;
    }
}
