@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Fundo atualizado para ser igual ao homepage.css */
body {
    padding-top: 80px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #004080;
    padding: 1px 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 80px;
}

header a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

header a img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
    padding: 0;
}

nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 2px 6px;
    border-radius: 2px;
    transition: 0.3s;
    font-size: 15px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
}

nav a, nav a:visited, nav a:hover, nav a:active {
    text-decoration: none;
}

/* Área do cliente e botões */
.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.client-area, .logout-btn, .login-btn {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Estilo para o botão Dashboard */
.client-area {
    background-color: #00264d; /* Azul mais escuro */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.client-area:hover {
    background-color: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo para o botão Logout */
.logout-btn {
    background-color: #dc3545; /* Vermelho */
    color: white;
    border: none;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo para o botão Login */
.login-btn {
    background-color: #28a745; /* Verde */
    color: white;
    border: none;
}

.login-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo para o botão Inscrever - DESTACADO */
.inscrever-btn {
    background: linear-gradient(135deg, #FFD600 0%, #FFA500 100%);
    color: #333 !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    border: 2px solid #FFD600;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.inscrever-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.inscrever-btn:hover::before {
    left: 100%;
}

.inscrever-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD600 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.6);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 214, 0, 0.7);
    }
    100% {
        box-shadow: 0 4px 15px rgba(255, 214, 0, 0.4);
    }
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    z-index: 3002; /* maior que o nav */
}

@media screen and (max-width: 900px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 0.5rem 0 0.5rem;
    }
    .nav-links {
        margin-top: 10px;
    }
}

@media screen and (max-width: 768px) {
    header {
        flex-direction: row;
        height: 60px;
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 3002;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background-color: #004080;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: left 0.3s;
        z-index: 3001;
        overflow-y: auto;
    }

    nav.active {
        left: 0;
    }

    nav a {
        width: 100%;
        text-align: left;
        padding: 1rem 0.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links {
        display: none;
    }
}

/* Garante que o conteúdo não fica escondido atrás do header fixo */
body {
    padding-top: 80px;
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px;
    }
}

@media screen and (max-width: 600px) {
    .noticias-grid, .testemunhos-grid {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .noticia-card, .testemunho-card {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
    .noticia-card img {
        width: 100% !important;
        height: auto !important;
    }
    .testemunhos-grid {
        padding: 0 5px !important;
    }
    .text-container {
        padding: 1rem !important;
    }
}

.main-header {
    background: linear-gradient(90deg, #004080 60%, #1976d2 100%);
    box-shadow: 0 2px 12px #0002;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    height: 80px;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px #0001;
    object-fit: contain;
}

.club-title {
    color: #ffd600;
    font-size: 1.25em;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #0002;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1em;
}

nav a:hover, nav a:focus {
    background: #ffd600;
    color: #004080;
}

.inscrever-btn {
    background: linear-gradient(90deg, #FFD600 60%, #FFA500 100%);
    color: #222 !important;
    font-weight: 700;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    margin-left: 8px;
    box-shadow: 0 2px 12px #ffd60044;
    border: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 2px 12px #ffd60044; }
    50% { box-shadow: 0 4px 24px #ffd60099; }
    100% { box-shadow: 0 2px 12px #ffd60044; }
}

.nav-user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd600;
    margin-right: 6px;
    background: #fff;
}

.dashboard-btn {
    background: #fff;
    color: #004080 !important;
    font-weight: 600;
    border-radius: 18px;
    padding: 6px 16px;
    box-shadow: 0 2px 8px #1976d233;
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
}

.dashboard-btn:hover {
    background: #ffd600;
    color: #004080 !important;
}

.logout-btn {
    background: #dc3545;
    color: #fff !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    margin-left: 4px;
    transition: background 0.18s;
}

.logout-btn:hover {
    background: #b71c1c;
}

.login-btn {
    background: #28a745;
    color: #fff !important;
    border-radius: 18px;
    padding: 7px 18px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 8px #28a74533;
    transition: background 0.18s;
}

.login-btn:hover {
    background: #218838;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffd600;
    font-size: 2em;
    margin-left: 12px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .main-header { padding: 0 6px; }
    .club-title { font-size: 1em; }
}

@media (max-width: 768px) {
    .main-header { height: 60px; }
    .logo-img { width: 40px; height: 40px; }
    .club-title { display: none; }
    nav {
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: #004080;
        flex-direction: column;
        padding: 2.5rem 1rem 1rem 1rem;
        transition: left 0.3s;
        z-index: 3001;
        overflow-y: auto;
        gap: 0;
    }
    nav.active { left: 0; }
    nav a, .dashboard-btn, .login-btn, .inscrever-btn {
        width: 100%;
        text-align: left;
        margin: 0 0 8px 0;
        border-radius: 10px;
        font-size: 1.1em;
        justify-content: flex-start;
    }
    .nav-user-area { flex-direction: column; align-items: flex-start; gap: 0; }
    .mobile-menu-btn { display: block; }
}

body { padding-top: 80px; }
@media (max-width: 768px) { body { padding-top: 60px; } }
