/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #0a0a0a; /* Fundo quase preto */
    --bg-panel: #111111; /* Fundo dos painéis */
    --bg-header-bar: linear-gradient(180deg, #8a0000 0%, #d00000 50%, #600000 100%); /* Vermelho metálico */
    --border-dark: #222; /* Bordas escuras */
    --text-white: #ffffff;
    --text-gray: #ccc;
    --primary-red: #b30000;
    --hover-red: #ff3333;
    --active-bg: linear-gradient(90deg, #400000 0%, #1a1a1a 100%); /* Fundo item ativo metálico */
}

body {
    background-color: var(--bg-body);
    color: var(--text-gray);
    font-family: 'Roboto', sans-serif; /* Fonte padrão */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

/* Header Area - Estilo Restaurado da V1 */
.main-header {
    background: #0d0d0d;
    padding-bottom: 0;
    border-bottom: 1px solid #333;
}

/* Top Navigation Bar - Estrutura V1 com Cores GigaMU */
.top-nav-bar {
    background: linear-gradient(to bottom, #d00000, #900000); /* Vermelho GigaMU */
    height: 60px; /* Altura ajustada para o título */
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.top-nav-bar .container {
    display: flex;
    width: 100%;
    align-items: center; /* Centraliza verticalmente */
    justify-content: flex-start; /* Alinha à esquerda (padrão wiki) ou center se preferir */
}

.wiki-brand {
    font-family: 'Cinzel', serif; /* Fonte do logo original se disponível, ou Roboto */
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.wiki-brand span {
    color: #ffcccc; /* Um tom mais claro para destaque se quiser, ou branco */
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout */
.main-layout {
    display: flex;
    margin-top: 30px;
    gap: 20px;
    min-height: 600px;
}

/* Sidebar (Menu Lateral) */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.logo-sidebar {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
}

.logo-sidebar img {
    max-width: 100%;
    height: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 15px;
    background: #151515;
    border: 1px solid #222;
    border-radius: 4px;
    color: #bbb;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--active-bg);
    color: #fff;
    border-color: var(--primary-red);
    padding-left: 20px;
}

/* Content Area */
.content {
    flex-grow: 1;
    background: var(--bg-panel);
    border: 1px solid #222;
    border-radius: 4px;
    padding: 20px;
    min-width: 0; /* Evita overflow em flex items */
}

.panel-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.panel-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    
    /* Metallic Gold Text */
    background: linear-gradient(180deg, #ffffff 0%, #ffd700 50%, #d4af37 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    
    /* Shadow for contrast */
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.8));
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.wiki-content p {
    margin-bottom: 15px;
}

/* Caixas de Alerta (Estilo Print) */
.alert-box {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.alert-blue {
    background-color: #dbeeff; /* Azul claro fundo */
    color: #0c5460; /* Azul escuro texto */
    border: 1px solid #bee5eb;
}

.alert-yellow {
    background-color: #fff3cd; /* Amarelo claro fundo */
    color: #856404; /* Marrom/Amarelo escuro texto */
    border: 1px solid #ffeeba;
}

.alert-yellow strong {
    color: #856404;
}

.alert-red {
    background-color: #2c0b0e; /* Vermelho escuro fundo */
    color: #ffcccc; /* Texto claro */
    border: 1px solid #842029;
    text-align: center;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

.alert-red strong {
    color: #ff6b6b;
    text-transform: uppercase;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border: none;
    color: #fff;
}

.btn-green {
    background-color: #28a745;
}
.btn-green:hover { background-color: #218838; }

.btn-red {
    background-color: #dc3545;
}
.btn-red:hover { background-color: #c82333; }

/* Grid Links */
.grid-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.grid-item {
    background: #181818;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    color: #fff;
}

.grid-item:hover {
    border-color: var(--primary-red);
    background: #202020;
}

.grid-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.grid-item .title {
    font-weight: bold;
    display: block;
    color: #fff;
}

/* Footer */
.main-footer {
    background: #000;
    border-top: 3px solid var(--primary-red); /* Linha vermelha no topo do footer */
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* Responsividade Global */
img {
    max-width: 100%;
    height: auto;
}

/* Craft System (Accordion) */
.craft-item {
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #151515;
    overflow: hidden;
}

.craft-header {
    padding: 12px 15px;
    background: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.craft-header:hover {
    background: #222;
}

.craft-title {
    font-weight: bold;
    color: #ddd;
}

.craft-toggle-icon {
    color: #666;
    transition: transform 0.3s;
}

.craft-item.active .craft-toggle-icon {
    transform: rotate(180deg);
}

.craft-body {
    display: none;
    padding: 15px;
    background: #111;
    border-top: 1px solid #333;
}

.craft-item.active > .craft-body {
    display: block;
}

/* Reutiliza estilos de lista do roadmap */
.craft-body ul, .roadmap-list {
    list-style: none;
    padding: 0;
}

.craft-body li, .roadmap-list li {
    padding: 5px 0;
    border-bottom: 1px solid #222;
    color: #ccc;
    display: flex;
    align-items: flex-start;
}

.craft-body li::before, .roadmap-list li::before {
    content: "•";
    color: #d00000;
    margin-right: 8px;
    font-weight: bold;
}

.section-header {
    font-size: 1.2rem;
    color: #fff;
    margin: 25px 0 15px;
    padding-left: 10px;
    border-left: 4px solid var(--primary-red);
}

.craft-list {
    list-style: none;
    padding: 0;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Container para centralizar imagens lado a lado */
.craft-images-center {
    text-align: center;
    margin: 15px 0;
}

/* Estilos para imagens dentro do craft */
.craft-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 2px solid #d00000; /* Borda vermelha conforme pedido */
    margin: 5px; /* Margem uniforme para quando centralizado */
    display: inline-block;
    vertical-align: top;
    transition: border-color 0.2s, transform 0.2s;
}

.craft-body img:hover {
    border-color: #ff0000;
    transform: scale(1.02);
}

/* Estilos para tabelas dentro do craft */
.craft-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #ddd;
}

.craft-table th,
.craft-table td {
    padding: 10px;
    border: 1px solid #333;
    text-align: left;
}

.craft-table th {
    background-color: #1a1a1a;
    color: #d00000;
    font-weight: bold;
    border-bottom: 2px solid #d00000;
}

.craft-table tr:nth-child(even) {
    background-color: #151515;
}

.craft-table tr:hover {
    background-color: #202020;
}

/* Subtítulos dentro do craft */
.craft-subtitle {
    font-size: 1rem;
    color: #d00000;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    display: block; /* Garante que ocupe a linha toda */
}

/* Dica dentro do craft */
.craft-tip {
    background-color: #2a2500; /* Fundo amarelado escuro */
    border-left: 4px solid #ffd700; /* Borda dourada */
    color: #fff8b0; /* Texto amarelo claro */
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: block;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); /* Brilho dourado */
}

.craft-tip strong {
    color: #ffd700; /* Destaque em dourado forte */
    margin-right: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Highlight Red Smoky Effect */
.text-highlight-red {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8), 0 0 15px rgba(255, 0, 0, 0.5);
    font-weight: bold;
}

/* Video Carousel */
.video-carousel-section {
    margin: 30px 0;
}

.video-carousel-section h3 {
    text-align: center;
    font-family: 'Cinzel', serif;
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8), 0 0 15px rgba(255, 0, 0, 0.5);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.carousel-container {
    position: relative;
    max-width: 100%; /* Full width to fit 2 videos */
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 50%; /* Show 2 videos at once */
    box-sizing: border-box;
    padding: 0 5px; /* Gap between videos */
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    padding: 10px;
    background: #111;
    border-top: 1px solid #333;
    
    /* New styles requested */
    font-family: 'Cinzel', serif;
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8), 0 0 15px rgba(255, 0, 0, 0.5);
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(208, 0, 0, 0.8);
}

.prev-btn {
    left: -50px;
}

.next-btn {
    right: -50px;
}

/* Responsividade do Carousel */
@media (max-width: 900px) {
    .carousel-slide {
        min-width: 100%; /* Back to 1 video on smaller screens */
    }
    .carousel-btn {
        padding: 5px 10px;
        font-size: 1.5rem;
    }
    .prev-btn { left: -35px; }
    .next-btn { right: -35px; }
}

@media (max-width: 600px) {
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}
/* Eventos em Dinheiro Theme */
.money-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.money-card {
    background: #151515;
    border: 1px solid #333;
    border-left: 4px solid #ffd700; /* Gold accent for money */
    border-radius: 4px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.money-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: #333;
    border-left-color: #ffaa00;
}

.money-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.money-value {
    color: #ffd700;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.money-desc {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.money-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #111;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #222;
}

.money-info-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #999;
}

.money-info-list li:last-child {
    margin-bottom: 0;
}

.money-info-list li::before {
    content: "$";
    color: #ffd700;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
}

/* Header Theme Override */
.panel-header.money-theme {
    border-bottom-color: #ffd700;
}

.panel-header.money-theme h2 {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Roadmap Theme */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.roadmap-card {
    background: #151515;
    border: 1px solid #333;
    border-top: 3px solid #d00000; /* Red top border standard */
    border-radius: 4px;
    padding: 20px;
    height: 100%;
    transition: transform 0.2s;
}

.roadmap-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.roadmap-card.launch-card {
    border-top-color: #28a745; /* Green for launch phase */
}

.roadmap-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.highlight-money {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}

.roadmap-warning-banner {
    margin: 15px 0 25px;
    padding: 12px 18px;
    background: linear-gradient(90deg, #3a2f00 0%, #5c4300 50%, #3a2f00 100%);
    border-radius: 4px;
    border-left: 4px solid #ffd700;
    color: #ffd700;
    font-size: 0.95rem;
}

/* Class Guides Theme */
.class-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    background: #151515;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #333;
}

.class-image {
    flex-shrink: 0;
    max-width: 100%;
}

.class-image img {
    border-radius: 4px;
    border: 2px solid #333;
    max-width: 250px; /* Limit image width */
    height: auto;
}

.class-desc {
    flex-grow: 1;
    min-width: 300px;
}

.class-desc h3 {
    font-family: 'Cinzel', serif;
    color: #ddd;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

/* Wiki Table Style */
.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #151515;
    border: 1px solid #333;
    font-size: 0.95rem;
}

.wiki-table th, .wiki-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.wiki-table th {
    background: #1a1a1a;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--primary-red);
}

.wiki-table tbody tr:hover {
    background: #1c1c1c;
}

.wiki-table td {
    color: #ccc;
}

/* Fix for Classes Grid Description */
.grid-item .desc {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 8px;
    line-height: 1.4;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: transform 0.2s, border-color 0.2s;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lang-btn.active {
    border-color: #ffd700;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.lang-btn svg {
    display: block;
}
