/* Cores e Estilo Geral */
:root {
--bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #F08921;
    /* Fontes Separadas */
    --font-header: 'Germania One', system-ui, serif;
    --font-body: 'Old Sans', sans-serif; /* Fonte para o texto comum */
}

@font-face {
    font-family: 'Gerful';
    src: url('fonts/gerful.ttf') format('truetype'); /* Ajuste o caminho conforme sua pasta */
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Old Sans';
    src: url('../fonts/OldSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body); /* Aplica Old Sans em tudo por padrão */
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Destaque sutil sem usar negrito */
h1, h2, h3, .sidebar-logo-link, .wiki-menu a {
    font-family: var(--font-header);
    font-weight: normal;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

p, li, blockquote, span, footer {
    font-family: var(--font-body);
}

section p {
    text-align: justify;
}

blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    font-style: italic;
    color: #bbb;
}

.destaque {
    color: #F08921 !important; /* Laranja da logo */ 
}

/* Transições */
.fade-in {
    animation: fadeIn 1.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Tela de Splash */
.splash-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.main-logo {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.main-header {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 20px;
}

.header-logo {
    width: 180px; /* Ajuste conforme o tamanho da sua imagem */
    height: auto;
    filter: drop-shadow(0px 0px 5px rgba(211, 84, 0, 0.2));
}

.btn-primary {
    background: transparent;
    border: 1px solid #444;
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    border-color: var(--accent-color);
    background: rgba(211, 84, 0, 0.1);
}

/* Layout do Conteúdo (Página de Regras) */
.layout-container {
    display: flex;
    flex-direction: row-reverse; /* Menu na direita */
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    position: fixed; /* Fixa o menu na tela, independente da rolagem do conteúdo */
    right: 0;
    top: 0;
    height: 100vh; /* Ocupa a altura total da janela */
    background-color: var(--bg-color);
    border-left: 1px solid #333;
    padding: 40px 20px;
    z-index: 100;
    
    /* Permite rolar o menu se ele for maior que a tela */
    overflow-y: auto; 
    box-sizing: border-box;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.content {
    flex: 1;
    margin-right: 280px; /* IMPORTANTE: Abre espaço para o menu que está fixo na direita */
    padding: 60px 40px;
    max-width: 900px;
    margin-left: auto; /* Centraliza o texto no espaço que sobra */
}

.main-footer {
    margin-top: 40px;    /* Reduzi de 80px para 40px */
    padding-bottom: 20px; /* Espaço final após o texto */
    text-align: center;
    color: #666;
}

.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin-bottom: 15px; /* Reduzi o espaço entre a linha e o texto */
    max-width: 500px;    /* Opcional: deixa a linha do rodapé curta e centralizada */
    margin-left: auto;
    margin-right: auto;
}

.footer-content p {
    font-size: 0.8rem;   /* Texto um pouco menor para ocupar menos espaço */
    margin: 2px 0;       /* Margens mínimas entre as linhas de texto */
}

.footer-tagline {
    font-style: italic;
    color: var(--accent-color);
}
/* Botão Voltar ao Topo */
#backToTop {
    display: none; /* Invisível por padrão */
    position: fixed;
    bottom: 20px;
    left: 20px; /* Canto inferior esquerdo */
    z-index: 99;
    border: 1px solid var(--accent-color);
    outline: none;
    background-color: rgba(18, 18, 18, 0.8); /* Fundo escuro com transparência */
    color: var(--accent-color);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1.2rem;
    transition: 0.3s;
}

#backToTop:hover {
    background-color: var(--accent-color);
    color: #fff;
}


/* Mobile */
@media (max-width: 768px) {
    .layout-container { flex-direction: column; }
    .sidebar {
        right: -100%; /* Esconde */
        width: 80%;
        transition: 0.4s ease;
    }

    .content {
        margin-right: 0; /* No mobile, o conteúdo usa a tela toda */
        padding: 40px 20px;
    }

    .sidebar.active { right: 0; /* Mostra */ }
}

    #backToTop {
        padding: 12px 18px;
        bottom: 15px;
        left: 15px;
    }

/* Estilo específico do Menu Wiki */
.sidebar-title {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.wiki-menu {
    list-style: none;
    padding: 0;
    margin-bottom: 60px;
}

.wiki-menu li {
    margin-bottom: 12px;
}

.wiki-menu li:nth-child(14) {
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.wiki-menu li:nth-child(20) {
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.wiki-menu a {
    text-decoration: none !important;
    color: #e0e0e0 !important; /* Cor padrão cinza claro */
    display: block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.wiki-menu a:hover {
    color: #F08921 !important; /* Laranja da logo */
    padding-left: 8px;
}

.wiki-menu a:active, 
.wiki-menu a.active {
    color: #F08921 !important;
}

/* Botão Hambúrguer Mobile */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

a {
    text-decoration: none;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .sidebar {
        width: 70%;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
}