/* ============================================
   RESET & VARIÁVEIS (TEMA DARK)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --sidebar-bg: #1f1f1f;
    --primary: #ff9900;
    --primary-dark: #e68a00;
    --text: #e0e0e0;
    --text-muted: #aaa;
    --border: #333;
    --success: #2e7d32;
    --error: #c62828;
    --warning: #ed6c02;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

h1 {
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    font-size: 2rem;
}

h2 {
    font-size: 1.6rem;
    margin-top: 30px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   HEADER / NAVEGAÇÃO (FRONT-END)
   ============================================ */
header {
    background: var(--sidebar-bg);
    border-bottom: 2px solid var(--primary);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
        gap: 15px;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .logo-img {
        height: 30px;
    }
    .logo {
        font-size: 1.2rem;
    }
}

/* ============================================
   BANNER ROTATIVO (SLIDER)
   ============================================ */
.banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}

@media (max-width: 768px) {
    .banner-slider {
        height: 250px;
    }
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   PÁGINAS PRINCIPAIS (CARDS, GRID)
   ============================================ */
.page {
    padding: 40px 0;
    min-height: 60vh;
}

.gallery,
.board-grid,
.event-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.board-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.member-card,
.event-card,
.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.member-card:hover,
.event-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.member-card img,
.event-card img,
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card img:hover {
    transform: scale(1.02);
}

.member-card h3,
.event-info h3,
.product-card h3 {
    padding: 12px 12px 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.event-info p,
.product-card p {
    padding: 0 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-text {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Botão padrão */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #121212;
    padding: 8px 18px;
    margin: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.statute-btn {
    text-align: center;
    margin: 40px 0;
}

/* ============================================
   MODAL (POPUP DE INSCRIÇÃO)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

.close:hover {
    color: var(--primary-dark);
}

/* Formulários dentro do modal */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    background: #2c2c2c;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Formulário principal (Quero Ser Jeepeiro) */
.form-membership {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
}

/* ============================================
   CATEGORIAS BOUTIQUE (ABAS)
   ============================================ */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.tab {
    padding: 8px 20px;
    background: var(--card-bg);
    border-radius: 30px;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
}

.tab:hover {
    background: var(--primary-dark);
    color: #121212;
}

.tab.active {
    background: var(--primary);
    color: #121212;
}

/* ============================================
   BOTÃO FLUTUANTE WHATSAPP
   ============================================ */
.float-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    z-index: 999;
    text-decoration: none;
}
.float-whatsapp:hover {
    transform: scale(1.05);
}
.float-whatsapp img {
    width: 28px;
    height: 28px;
}
@media (max-width: 768px) {
    .float-whatsapp {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }
    .float-whatsapp img {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   ESTATUTO NA PÁGINA QUERO SER JEEPEIRO
   ============================================ */
.statute-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.statute-box p {
    margin-bottom: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    text-align: center;
    padding: 20px;
    background: var(--sidebar-bg);
    margin-top: 60px;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   MODAL PARA AMPLIAR IMAGEM (BOUTIQUE)
   ============================================ */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1100;
    cursor: pointer;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1101;
}

.image-modal-close:hover {
    color: var(--primary);
}

/* ============================================
   PAINEL ADMIN – LAYOUT COM MENU LATERAL
   ============================================ */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--dark-bg);
}

.admin-sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sidebar-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text);
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    background: #2c2c2c;
    color: var(--primary);
}

.sidebar-menu li.active a {
    background: var(--primary);
    color: #121212;
}

.admin-content {
    flex: 1;
    padding: 30px;
    overflow-x: auto;
}

/* Responsivo admin: menu lateral vira topo */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 15px;
    }
    .admin-content {
        padding: 20px;
    }
}

/* ============================================
   COMPONENTES ADMIN (FLASH, TABELAS, SORTABLE)
   ============================================ */
.flash {
    padding: 12px 16px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
}

.flash.success {
    background: var(--success);
    color: white;
}

.flash.error {
    background: var(--error);
    color: white;
}

.flash.warning {
    background: var(--warning);
    color: #121212;
}

/* Tabelas administrativas */
table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--primary);
    color: #121212;
    font-weight: 600;
}

tr:hover {
    background: rgba(255, 153, 0, 0.1);
}

/* Listas ordenáveis (drag and drop) */
.sortable-list {
    list-style: none;
    padding: 0;
}

.sortable-list li {
    background: var(--card-bg);
    margin: 10px 0;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 8px;
    cursor: grab;
    transition: background 0.2s;
    border: 1px solid var(--border);
}

.sortable-list li:active {
    cursor: grabbing;
}

.sortable-list li:hover {
    background: #2c2c2c;
}

.sortable-list img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.sortable-list li a {
    margin-left: auto;
    color: var(--error);
    text-decoration: none;
    font-weight: bold;
}

.sortable-list li a:hover {
    text-decoration: underline;
}

/* Cards de eventos no admin */
.event-item {
    background: var(--card-bg);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.event-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.event-item > div {
    flex: 1;
}

.event-item .btn {
    margin: 0;
}

/* Bloco de inscrições por evento */
.event-block {
    margin-bottom: 40px;
}

.event-block h2 {
    background: var(--sidebar-bg);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1.3rem;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-center {
    text-align: center;
}

.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 20px; }

/* ============================================
   GALERIA DE IMAGENS (PÁGINA QUEM SOMOS)
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.02);
}