/* Estilos para o site ARKADIA - Servidor Privado de Grand Fantasia */
:root {
    --primary-color: #1e3799; /* Azul Royal como cor principal */
    --primary-hover: #0c2461; /* Tom mais escuro para hover */
    --secondary-color: #0097e6; /* Azul mais claro como cor secundária */
    --accent-color: #4a69bd; /* Azul médio como cor de destaque */
    --dark-color: #192a56; /* Azul escuro profundo */
    --nav-bg: #ffffff;
    --nav-text: #2c3e50;
    --nav-border: #e2e8f0;
    --light-color: #f8fafc;
    --text-dark: #2c3e50;
    --text-light: #f1f5f9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --glow: 0 0 10px rgba(30, 55, 153, 0.5), 0 0 20px rgba(30, 55, 153, 0.3);
    --bg-color: #fff;
    --text-color: #222;
    --card-bg: #fff;
    --section-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --divider-color: #cbd5e1;
    --category-bg: #f1f5f9;
    --category-hover: #e2e8f0;
    --highlight-color: #FFD700;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--section-bg);
    color: var(--text-color);
    line-height: 1.6;
    background-image: url('https://via.placeholder.com/1920x200?text=Background+Pattern');
    background-repeat: repeat;
    background-attachment: fixed;
    background: var(--bg-color, #fff);
    transition: background 0.3s, color 0.3s;
}

body.night-mode {
    --bg-color: #101a3c;
    --section-bg: #101a3c;
    --card-bg: #162447;
    --nav-bg: #101a3c;
    --border-color: #223077;
    --divider-color: #FFD700;
    --category-bg: #162447;
    --category-hover: #223077;
    --text-color: #fffbe7;
    --highlight-color: #e7c873;
    --nav-text: #FFD700;
}

body.night-mode .feature-card h3,
body.night-mode .feature-icon,
body.night-mode .feature-card p {
    color: var(--text-color) !important;
}

body.night-mode .feature-card {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

body.night-mode .section-header h2,
body.night-mode .section-header h2 span {
    color: var(--text-color) !important;
}

body.night-mode .news-card h3,
body.night-mode .news-card .news-tag,
body.night-mode .news-card p,
body.night-mode .news-card .news-date {
    color: var(--text-color) !important;
}

body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode h5,
body.night-mode h6,
body.night-mode .section-header h2,
body.night-mode .section-header h2 span,
body.night-mode .news-card h3,
body.night-mode .feature-card h3,
body.night-mode .class-card h3 {
    color: var(--highlight-color) !important;
}

body.night-mode .navbar,
body.night-mode .footer-section,
body.night-mode .footer-bottom {
    background-color: var(--nav-bg) !important;
    color: var(--highlight-color) !important;
}

body.night-mode .nav-links ul li a,
body.night-mode .account-btn,
body.night-mode .auth-link {
    color: var(--highlight-color) !important;
}

body.night-mode .nav-links ul li a.active,
body.night-mode .nav-links ul li a:hover,
body.night-mode .account-btn:hover,
body.night-mode .auth-link:hover {
    color: #fffbe7 !important;
}

body.night-mode .view-all {
    color: var(--highlight-color, #e7c873) !important;
}

body, .navbar, .news-card, .feature-card, .class-card, .dropdown-content, .category, .section-header h2, .section-header h2 span, .footer-section, .footer-bottom {
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

body.night-mode footer {
    background: #0b1430;
    color: #e7c873;
}

body.night-mode .footer-content {
    background: transparent;
}

body.night-mode .footer-section {
    background: #162447;
    border-radius: 6px;
    padding: 18px 18px 12px 18px;
    margin-bottom: 0;
    color: #fffbe7;
}

body.night-mode .footer-section h3 {
    color: #e7c873;
    letter-spacing: 1px;
}

body.night-mode .footer-section p,
body.night-mode .footer-section a,
body.night-mode .footer-section.contact p {
    color: #fffbe7;
}

body.night-mode .footer-section.links ul li a {
    color: #fffbe7;
}

body.night-mode .footer-section.links ul li a:hover {
    color: #e7c873;
}

body.night-mode .footer-bottom {
    background: #101a3c;
    color: #e7c873;
    border-radius: 0 0 8px 8px;
    margin-top: 18px;
    padding: 16px 0 8px 0;
}

body.night-mode .footer-bottom b {
    color: #e7c873;
}

body.night-mode .social-icons a {
    background: rgba(255,255,255,0.08);
    color: #e7c873;
}

body.night-mode .social-icons a:hover {
    background: #e7c873;
    color: #101a3c;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-section {
        margin-bottom: 0;
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--dark-color);
}

/* Barra de navegação */
.navbar {
    background-color: var(--nav-bg) !important;
    color: var(--nav-text);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--shadow);
    padding: 12px 0; /* Ajustado para acomodar o logo maior */
    position: sticky;
    top: 0;
    z-index: 90;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo img {
    height: 70px; /* Aumentando o tamanho do logotipo de 50px para 70px */
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    margin: 0;
}

.nav-links ul li a {
    text-decoration: none;
    color: var(--nav-text) !important;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s;
    position: relative;
    display: block;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-links ul li a:hover {
    color: var(--primary-color) !important;
}

.nav-links ul li a.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color);
}

/* Menu do usuário */
.user-menu {
    display: flex;
    align-items: center;
}

/* Links de autenticação */
.auth-links {
    display: flex;
    align-items: center;
}

.auth-link {
    text-decoration: none;
    color: var(--nav-text) !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    padding: 0 10px;
}

.auth-link:hover {
    color: var(--primary-color) !important;
}

.divider {
    color: var(--divider-color);
    margin: 0 5px;
}

/* Dropdown de conta */
.account-dropdown {
    position: relative;
}

.account-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--nav-text) !important;
    transition: all 0.3s;
    padding: 8px 10px;
}

.account-btn:hover {
    color: var(--primary-color) !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--card-bg);
    min-width: 180px;
    box-shadow: var(--shadow);
    border-radius: 5px;
    z-index: 100;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--section-bg);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Botões */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-glow {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--glow);
}

.btn-glow:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(30, 55, 153, 0.7), 0 0 30px rgba(30, 55, 153, 0.4);
}

/* Banner do Jogo */
.game-banner {
    margin-top: 0;
    padding-top: 0;
    background-image: url('/static/src/images/static_bg.jpg');
    background-size: cover;
    background-position: center 40%; /* Centraliza o rosto do personagem, ajuste o valor se necessário */
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 6rem 0;
    text-align: center;
    overflow: hidden;
}

.game-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16,26,60,0.65); /* overlay azul marinho escuro, ajustável */
    z-index: 1;
}
.game-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16,26,60,0.65), transparent);
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.banner-content h1 span {
    display: block;
    color: var(--secondary-color);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Seção de Notícias */
.news-section {
    padding: 4rem 0;
    background-color: var(--section-bg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-header h2 span {
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-all:hover {
    text-decoration: underline;
}

.news-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category {
    padding: 0.5rem 1.5rem;
    background-color: var(--category-bg);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.category:hover {
    background-color: var(--category-hover);
}

.category.active {
    background-color: var(--primary-color);
    color: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.3s;
    position: relative;
    border-top: 4px solid var(--primary-color);
    border-color: var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-tag {
    position: absolute;
    top: -10px;
    right: 20px;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.news-tag.atualizacoes {
    background-color: #FFB300; /* Amarelo ainda mais escuro */
    color: #222;
}

.news-tag.eventos {
    background-color: #7CFC98; /* Verde Claro */
    color: #222;
}

.news-tag.manutencao {
    background-color: #40BFFF; /* Azul Claro */
    color: #fff;
}

.news-tag.importante {
    background-color: #ef4444; /* Vermelho */
    color: #fff;
}

.news-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.3rem;
}

.news-date {
    color: var(--text-color) !important;
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--text-color) !important;
    opacity: 0.85;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 18px;
    padding: 0.38em 1.1em 0.38em 1em;
    font-size: 1em;
    box-shadow: none;
    text-decoration: none;
    transition: background 0.18s, transform 0.13s;
    cursor: pointer;
    outline: none;
}

.read-more i {
    font-size: 1em;
    margin-left: 0.18em;
    transition: transform 0.18s;
}

.read-more:hover, .read-more:focus {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px) scale(1.03);
    text-decoration: none;
}

.read-more:active {
    transform: scale(0.97);
}

/* Seção de Classes */
.classes-section {
    padding: 60px 0;
    background-color: var(--section-bg) !important;
    overflow: hidden; /* Garante que nada escape da seção */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2 span {
    color: var(--primary-color);
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Classes Slider Container */
.classes-slider-container {
    position: relative;
    overflow: hidden; /* Oculta cards fora do container */
    width: 100%;
    padding: 20px 0;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Centralizar o conteúdo */
}

/* Classes Slider */
.classes-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Transição mais suave */
    padding: 20px 0;
    margin: 0 auto;
    visibility: visible; /* Alterado para sempre visível */
    will-change: transform; /* Otimização para animações */
    max-width: 100%; /* Garantir que não ultrapasse o container */
}

/* Class Card */
.class-card {
    flex: 0 0 300px;
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-color) !important;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Transição mais suave */
    opacity: 0.6;
    transform: scale(0.85);
    cursor: pointer;
    position: relative;
    z-index: 1;
    margin: 0 10px;
    max-width: 300px;
    visibility: hidden; /* Todos os cards começam invisíveis */
    border-color: var(--border-color);
}

.class-card.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(30, 55, 153, 0.25);
    z-index: 2;
    border: 2px solid var(--primary-color);
}

.class-card:hover {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
}

.class-card.active:hover {
    transform: translateY(-10px) scale(1.1);
}

.class-image {
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.class-card.active .class-image {
    transform: scale(1.05);
}

.class-image.warrior {
    background-image: url('src/images/classes/warrior.webp');
}

.class-image.archer {
    background-image: url('src/images/classes/archer.webp');
}

.class-image.priest {
    background-image: url('src/images/classes/priest.webp');
}

.class-image.mage {
    background-image: url('src/images/classes/mage.webp');
}

.class-image.machinist {
    background-image: url('src/images/classes/machinist.webp');
}

.class-image.timetraveler {
    background-image: url('src/images/classes/timetraveler.webp');
}

.class-card h3 {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.class-card.active h3 {
    color: var(--primary-color) !important;
}

.class-specs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.class-specs span {
    background-color: var(--category-bg) !important;
    color: var(--primary-color) !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.class-card.active .class-specs span {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.class-card p {
    color: var(--text-color) !important;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.class-card.active p {
    color: var(--text-color) !important;
}

/* Slider Navigation */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
}

.slider-controls .control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls .control.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .class-card {
        flex: 0 0 260px;
        max-width: 260px;
    }
    
    .class-image {
        height: 180px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .class-card {
        flex: 0 0 220px;
        max-width: 220px;
    }
    
    .class-image {
        height: 150px;
    }
    
    .slider-btn {
        width: 30px;
        height: 30px;
    }
    
    .slider-controls .control {
        width: 10px;
        height: 10px;
    }
}

/* Seção de Características */
.features-section {
    padding: 5rem 0;
    background-color: var(--section-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
    text-align: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-color) !important;
    opacity: 0.85;
}

/* Seção CTA */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--section-bg);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-section .btn-outline {
    border-color: white;
    color: white;
}

.cta-section .btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

.sprite-decoration {
    position: absolute;
    bottom: -30px;
    right: 50px;
    width: 150px;
    height: 150px;
    background-image: url('https://via.placeholder.com/150x150?text=Sprite');
    background-size: contain;
    background-repeat: no-repeat;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Main Content */
main {
    min-height: calc(100vh - 300px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links ul li {
    margin-bottom: 0.7rem;
}

.footer-section.links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section.links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .banner-content h1 {
        font-size: 2.8rem;
    }
    
    .sprite-decoration {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        z-index: 100;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav-links ul li {
        margin: 0;
        padding: 0.7rem 0;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
    
    .banner-buttons {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .news-categories {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Estilo para página de downloads --- */
.downloads-page {
    max-width: 700px;
    margin: 32px auto;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 32px 40px;
}
.download-section {
    margin-bottom: 32px;
}
.download-section h3 {
    color: #223077;
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 4px;
}
.download-card {
    background: var(--category-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 12px;
}
.download-section ul {
    padding-left: 18px;
}
.download-section li {
    margin-bottom: 8px;
}
.download-section .btn {
    display: inline-block;
    background: #223077;
    color: #fff;
    padding: 7px 18px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.2s;
}
.download-section .btn:hover {
    background: #1a235a;
}
@media (max-width: 800px) {
    .downloads-page {
        padding: 18px 6vw;
    }
}

a {
    color: var(--text-color);
}

/* Estilo para o switch do modo noturno */
.mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #ffffff;
    color: #fff;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mode-label {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--text-color, #222);
    transition: color 0.4s;
}

.mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.mode-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color, #1e3799);
    transition: color 0.4s;
}

.mode-switch {
    position: relative;
    width: 38px;
    height: 22px;
    margin-left: 8px;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: #e2e8f0;
    border-radius: 999px;
    transition: background 0.4s;
    display: block;
}

#nightModeSwitch:checked + .switch-slider {
    background: #223077;
}

.switch-slider:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.4s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

#nightModeSwitch:checked + .switch-slider:before {
    transform: translateX(16px);
    background: #e7c873;
}

body.night-mode .mode-toggle {
    background: var(--nav-bg, #101a3c);
    border-color: var(--border-color, #223077);
}

body.night-mode .mode-label {
    color: var(--highlight-color, #e7c873);
}

body.night-mode .mode-icon svg {
    color: var(--highlight-color, #e7c873);
}

/* --- Estilo para inputs modernos do formulário de registro --- */
.input-modern {
    padding-left: 44px !important;
    height: 48px;
    border-radius: 30px;
    border: 1.5px solid var(--border-color, #e2e8f0);
    font-size: 1.08rem;
    background: var(--light-color, #f8f9fa);
    box-shadow: 0 2px 8px rgba(30,55,153,0.04);
    margin-bottom: 0;
    width: 100%;
    transition: border 0.2s, box-shadow 0.2s;
}
.input-modern:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(30,55,153,0.10);
}
.auth-card-register .fa-user,
.auth-card-register .fa-envelope,
.auth-card-register .fa-lock {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #223077;
    opacity: 0.7;
    font-size: 1.1em;
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 500px) {
    .input-modern {
        height: 42px;
        font-size: 1em;
    }
}

/* --- Estilo para painel de autenticação --- */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--section-bg);
}
.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
}
.auth-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(30,55,153,0.08);
    padding: 2.2rem 2rem 1.5rem 2rem;
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}
.auth-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.auth-desc {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    opacity: 0.85;
}
.auth-form {
    margin-top: 0.5rem;
}
.auth-form p {
    margin-bottom: 1rem;
}
.form-errors {
    margin-bottom: 1rem;
}
.form-errors .error {
    color: #ef4444;
    background: #fff0f0;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 0.97em;
}
.auth-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0.5rem 0 1.2rem 0;
    justify-content: center;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: var(--divider-color);
    margin: 0 10px;
}
.divider-text {
    color: var(--divider-color);
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 1px;
}
.auth-register-card {
    background: var(--category-bg);
    border-radius: 8px;
    padding: 1.1rem 1.2rem;
    text-align: center;
    width: 100%;
    box-shadow: 0 1px 6px rgba(30,55,153,0.04);
    font-size: 1.02em;
}
.auth-register-card .auth-link {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-register-card .auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
@media (max-width: 500px) {
    .auth-panel {
        max-width: 98vw;
    }
    .auth-card, .auth-register-card {
        padding: 1.2rem 0.7rem;
    }
}

/* Layout horizontal para painel de autenticação */
.auth-panel-horizontal {
  max-width: 600px;
  min-width: 0;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(30,55,153,0.10);
  border-radius: 14px;
  overflow: hidden;
  background: none;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.auth-card-login {
  background: linear-gradient(135deg, #1e3799 0%, #4a69bd 100%);
  color: #fff;
  min-width: 0;
  width: 50%;
  max-width: none;
  padding: 1.2rem 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}
.auth-card-register {
  background: #fff;
  width: 50%;
  min-width: 0;
  max-width: none;
  padding: 1.2rem 0.7rem;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.register-info ul {
  margin: 0.13em 0 0.08em 0.4em !important;
  font-size: 0.78em !important;
  font-style: italic;
  color: #bfa52f;
}
body.night-mode .register-info ul li {
  color: #ffe066;
}
@media (max-width: 700px) {
  .auth-panel-horizontal {
    flex-direction: column;
    max-width: 98vw;
    border-radius: 10px;
  }
  .auth-card-login, .auth-card-register {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    border-radius: 0;
    padding: 1rem 0.4rem;
  }
  .register-form {
    max-width: 98vw;
  }
}

/* Melhorias para o dark mode da página de registro */
body.night-mode .auth-card-login {
  background: linear-gradient(135deg, #101a3c 0%, #223077 100%) !important;
  color: #ffe066 !important;
}
body.night-mode .auth-card-register {
  background: #162447 !important;
  color: #ffe066 !important;
}
body.night-mode .register-title,
body.night-mode .register-field label {
  color: #ffe066 !important;
}
body.night-mode .register-input-wrapper input {
  background: #101a3c !important;
  color: #ffe066 !important;
  border: 1.2px solid #223077 !important;
}
body.night-mode .register-input-wrapper input:focus {
  background: #162447 !important;
  border-color: #ffe066 !important;
}
body.night-mode .register-btn {
  background: #ffe066 !important;
  color: #223077 !important;
}
body.night-mode .register-btn:hover {
  background: #fffbe7 !important;
  color: #101a3c !important;
}
body.night-mode .register-info ul li {
  color: #ffe066 !important;
  opacity: 0.85;
}
body.night-mode .form-errors .error {
  background: #2d1c1c !important;
  color: #ffb3b3 !important;
}
body.night-mode .register-input-wrapper i {
  color: #ffe066 !important;
  opacity: 0.8;
}

/* --- Registro simples e centralizado --- */
.register-simple-card {
  background: var(--card-bg);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(30,55,153,0.13);
  padding: 3.2rem 2.5rem 2.2rem 2.5rem;
  max-width: 420px;
  width: 100%;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.register-title {
  font-family: 'Cinzel', serif;
  color: var(--highlight-color);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: 1px;
}
.register-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.register-field label {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.3em;
  display: block;
  font-size: 1.05em;
  transition: color 0.3s;
}
body.night-mode .register-field label {
  color: var(--highlight-color);
}
.register-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.register-input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1.1em;
  z-index: 2;
}
.register-input-wrapper input,
.register-input-wrapper input[type="text"],
.register-input-wrapper input[type="email"],
.register-input-wrapper input[type="password"] {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1.2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1.05em;
  background: #fafbfc;
  transition: border 0.2s;
}
.register-input-wrapper input:focus {
  border-color: #FFD700;
  outline: none;
  background: #fff;
}
.register-help {
  color: #888;
  font-size: 0.97em;
  margin-top: 0.2em;
  display: block;
}
.form-errors .error {
  color: #c0392b;
  background: #ffeaea;
  padding: 0.5em 1em;
  border-radius: 6px;
  margin-bottom: 0.3em;
  font-size: 0.98em;
}
.register-btn {
  width: 100%;
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 13px 0;
  font-size: 1.08em;
  margin-top: 0.7em;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(30,55,153,0.04);
}
.register-btn:hover {
  background: var(--primary-hover);
}
@media (max-width: 600px) {
  .register-simple-card {
    padding: 1.2rem 0.5rem;
    max-width: 98vw;
    border-radius: 12px;
  }
  .register-title {
    font-size: 1.4rem;
  }
}

/* Ajuste para instruções do registro ficarem visíveis em ambos os temas */
.register-info ul {
  margin: 0.4em 0 0.2em 0.5em;
  padding-left: 1.1em;
  list-style: disc;
}
.register-info ul li {
  color: #bfa52f;
  font-size: 0.98em;
  margin-bottom: 0.2em;
  opacity: 0.95;
}
body.night-mode .register-info ul li {
  color: #ffe066;
  opacity: 1;
}

/* Estilo para paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.page-link, .pagination .page-link {
  display: inline-block;
  min-width: 38px;
  padding: 0.5em 1.1em;
  margin: 0 2px;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.08em;
  border: 2px solid var(--border-color);
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(30,55,153,0.04);
}
.page-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}
.page-link.active, .pagination .page-link.active {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-color: var(--primary-color);
  cursor: default;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(30,55,153,0.10);
}
@media (max-width: 600px) {
  .pagination {
    gap: 0.2rem;
  }
  .page-link, .pagination .page-link {
    min-width: 28px;
    padding: 0.4em 0.7em;
    font-size: 0.98em;
  }
}

body.night-mode .pagination .page-link {
  background: var(--card-bg);
  color: var(--highlight-color);
  border-color: var(--border-color);
}
body.night-mode .pagination .page-link.active {
  background: linear-gradient(90deg, #223077, #FFD700);
  color: #223077;
  border-color: #FFD700;
}

body.night-mode .nav-links {
    background-color: var(--nav-bg, #101a3c);
    color: var(--text-light, #fff);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.night-mode .nav-links ul li a {
    color: var(--text-light, #fff);
}

body.night-mode .nav-links ul li a:hover {
    color: var(--highlight-color, #e7c873);
}