/* css/manual.css */

#manual-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px; /* Espaço para a Top Bar */
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
}

.manual-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1400px;
    height: calc(100vh - 100px); /* Subtrai o padding superior e deixa margem inferior */
    margin: 0 auto;
    background: rgba(10, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* SIDEBAR / MENU */
.manual-sidebar {
    width: 280px;
    min-width: 280px;
    background: rgba(5, 8, 15, 0.6);
    border-right: 1px solid rgba(255, 215, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.manual-sidebar-title {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 1.5rem;
    text-align: center;
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

#manual-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.manual-nav-link {
    display: block;
    padding: 12px 20px;
    color: #b0c4de;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.manual-nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #fff;
}

.manual-nav-link.active {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-left: 3px solid #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Scrollbar do Sidebar */
#manual-nav::-webkit-scrollbar {
    width: 6px;
}
#manual-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

/* CONTEÚDO PRINCIPAL */
.manual-content {
    flex: 1;
    padding: 40px 60px;
    overflow-y: auto;
    scroll-behavior: smooth; /* Para âncoras locais */
}

/* Scrollbar do Conteúdo */
.manual-content::-webkit-scrollbar {
    width: 8px;
}
.manual-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.manual-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.manual-header {
    text-align: center;
    margin-bottom: 50px;
}

.manual-title {
    font-family: 'Germania One', cursive;
    color: #ffd700;
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8), 0 0 15px rgba(255, 215, 0, 0.3);
}

.manual-section {
    margin-bottom: 60px;
    color: #e0e0e0;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
}

.manual-section h2 {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-size: 2.2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.manual-section h3 {
    font-family: 'Cinzel', serif;
    color: #ffaa00;
    font-size: 1.5rem;
    margin-top: 35px;
    margin-bottom: 15px;
}

.manual-section p {
    margin-bottom: 15px;
}

.manual-section ul, .manual-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.manual-section li {
    margin-bottom: 8px;
}

.manual-section strong {
    color: #fff;
    font-weight: 600;
}

/* PLACEHOLDERS DE IMAGEM */
.manual-image-placeholder {
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
    transition: all 0.3s ease;
}

.manual-image-placeholder:hover {
    border-color: rgba(255, 215, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
}

.manual-image-placeholder img {
    max-width: 100%;
    max-height: 300px;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* TABELAS DO MANUAL */
.manual-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.manual-table th, .manual-table td {
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 12px 15px;
    text-align: left;
}

.manual-table th {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.manual-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.manual-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

/* Responsividade Básica */
@media (max-width: 900px) {
    .manual-container {
        flex-direction: column;
    }
    
    .manual-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    }
    
    .manual-content {
        padding: 20px 30px;
    }
}
