/* --- Variáveis e Reset --- */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary-color: #ff69b4;
    --secondary-color: #9b59b6;
    --text-color: #ffffff;
    --border-radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--secondary-color), var(--primary-color)); border-radius: 5px; }

/* --- LÓGICA DE ABAS (PÁGINAS) --- */
.tab-section {
    display: none; /* Esconde todas por defeito */
    min-height: 80vh;
    animation: fadeIn 0.5s ease;
}

.tab-section.active-section {
    display: flex; /* Mostra só a ativa */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ajuste para o conteúdo ficar centrado e bonito */
.section-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 100px 20px 40px; /* Top padding por causa da navbar fixa */
    text-align: center;
}

/* O Hero tem um estilo especial de fundo */
.hero-style {
    background: radial-gradient(circle at center, rgba(155, 89, 182, 0.15) 0%, rgba(18, 18, 18, 1) 70%);
}

/* --- DROPDOWN POR CLIQUE --- */
.dropdown-click-container {
    position: relative;
    z-index: 1001; /* ADICIONADO: Garante que fica por cima da bandeira */
}

.dropdown-click-menu {
    display: none; 
    position: absolute;
    top: 130%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 170px;
    flex-direction: column;
    gap: 8px;
    z-index: 2000; /* Confirma se este valor está alto */
}

/* Classe que o JS vai adicionar para mostrar o menu */
.dropdown-click-menu.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Estilo dos Botões do Menu */
.btn-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-opt:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- CORES PERSONALIZADAS --- */
.btn-opt.paypal {
    background: linear-gradient(135deg, #0079C1, #00457C); /* Azul */
}

.btn-opt.mbway {
    background: linear-gradient(135deg, #2ecc71, #27ae60); /* Verde */
}

/* --- LINGUAGEM --- */
.lang-en { display: none; }
.lang-pt { display: inline; }
body.en-mode .lang-en { display: inline; }
body.en-mode .lang-pt { display: none; }
body.en-mode .lang-en.bio-text { display: block; }

/* Botão de Bandeira */
.lang-btn {
    background: transparent; border: none; cursor: pointer;
    padding: 5px; display: flex; align-items: center; justify-content: center;
}
.lang-btn img {
    width: 26px; height: 18px; object-fit: cover; border-radius: 3px;
    transition: transform 0.2s; box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
.lang-btn:hover img { transform: scale(1.1); }

/* Texto Destaque */
.text-highlight { color: var(--primary-color); font-weight: 700; }

/* --- Navbar --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; background: rgba(18, 18, 18, 0.95);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}
.logo {
    font-size: 1.5rem; font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: #cccccc; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active-link { color: var(--primary-color); }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: white; }

.nav-cta {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    padding: 8px 20px; border-radius: 20px; color: white !important;
    font-weight: 600; box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
    transition: transform 0.2s;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(255, 75, 43, 0.5); }

/* --- Hero Content --- */
.hero-content { max-width: 700px; text-align: center; margin-top: 60px; }
.profile-frame {
    width: 160px; height: 160px; margin: 0 auto 25px;
    border-radius: 50%; padding: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}
.profile-pic { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--bg-color); }
h1 { font-size: 3rem; margin-bottom: 15px; font-weight: 700; }
.highlight { color: var(--primary-color); text-shadow: 0 0 10px rgba(255, 105, 180, 0.3); }
.bio-text { margin-bottom: 35px; color: #d1d1d1; font-size: 1.1rem; }
.btn-twitch {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 35px;
    background-color: #9146FF; color: white; text-decoration: none;
    border-radius: 50px; font-weight: 600; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.3); cursor: pointer;
}
.btn-twitch:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(145, 70, 255, 0.5); background-color: #7c2cf1; }

/* --- Elementos Comuns --- */
h2 { margin-bottom: 50px; font-size: 2.2rem; color: var(--text-color); display: inline-block; }
h2 i { color: var(--primary-color); margin-right: 10px; }
.section-desc { margin-bottom: 30px; color: #aaa; }

/* --- Specs Grid --- */
.specs-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px; max-width: 1100px; margin: 0 auto; width: 100%;
}
.spec-card {
    background: var(--card-bg); padding: 30px 20px;
    border-radius: var(--border-radius); border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.spec-card:hover { border-color: var(--secondary-color); transform: translateY(-5px); }
.spec-card i { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 15px; }
.spec-card h3 { margin-bottom: 5px; font-size: 1.1rem; }
.spec-card p { color: #aaa; font-size: 0.9rem; }

/* --- Parcerias --- */
.partners-grid { 
    display: flex; 
    justify-content: center; 
    gap: 30px; 
    flex-wrap: wrap; 
    align-items: flex-start; /* Garante que ficam alinhados ao topo */
}
.partner-card-link { text-decoration: none; color: inherit; display: block; }

.partner-card {
    background: linear-gradient(145deg, #252525, #1e1e1e); padding: 30px;
    border-radius: var(--border-radius); width: 350px; text-align: center; 
    border-bottom: 4px solid var(--primary-color); transition: transform 0.3s, box-shadow 0.3s;
    display: flex; flex-direction: column;
}

.partner-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.partner-img-container { height: 100px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.partner-card img { max-width: 80%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); }
.partner-code { font-size: 1.1rem; margin: 10px 0; font-weight: 600; }
.partner-desc { font-size: 0.85rem; color: #aaa; margin-bottom: 15px; }

/* Regras das Parcerias (NOVO) */
.partner-terms {
    margin-top: auto; /* Empurra para o fundo se houver espaço */
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #888;
    text-align: left;
    line-height: 1.4;
}
.partner-terms strong { font-weight: 600; }
.partner-terms strong.danger { color: #ff6b6b; } /* Vermelho suave */
.partner-terms strong.success { color: #51cf66; } /* Verde suave */
.mb-2 { margin-bottom: 8px; }

/* --- Wishlist --- */
.wishlist-items {
    list-style: none; max-width: 600px; margin: 0 auto 40px; text-align: left;
    background: var(--card-bg); padding: 30px; border-radius: var(--border-radius);
}
.wishlist-items li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; color: #ddd; }
.wishlist-items li:last-child { border-bottom: none; }
.wishlist-items i { margin-right: 15px; color: var(--primary-color); }
.wishlist-items li.completed { color: #4cd137; text-decoration: line-through; opacity: 0.7; }
.wishlist-items li.completed i { color: #4cd137; }
.btn-primary.throne-btn {
    background: transparent; color: var(--primary-color);
    border: 2px solid var(--primary-color); padding: 15px 30px;
    font-size: 1.1rem; border-radius: 50px; text-decoration: none;
    transition: 0.3s; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary.throne-btn:hover { background: var(--primary-color); color: white; box-shadow: 0 0 20px rgba(255, 105, 180, 0.4); }

/* --- APOIO --- */
.support-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.support-card {
    display: flex; align-items: center; gap: 15px; padding: 20px 30px;
    border-radius: 15px; text-decoration: none; color: white;
    transition: transform 0.3s, box-shadow 0.3s; min-width: 250px;
    border: 1px solid rgba(255,255,255,0.05);
}
.support-card i { font-size: 2rem; }
.support-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.support-card p { font-size: 0.9rem; opacity: 0.8; }
.support-card.paypal { background: linear-gradient(135deg, #0079C1, #00457C); }
.support-card.mbway { background: linear-gradient(135deg, #e63946, #d62828); }
.support-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

/* --- Redes Sociais --- */
.social-icons {
    display: flex; justify-content: center; align-items: center;
    gap: 30px; padding: 10px 0;
}
.social-icons a { 
    font-size: 3.5rem; 
    color: #cccccc; transition: 0.3s; 
    display: inline-block; line-height: 1; padding: 5px;
}
.social-icons a:hover { color: var(--primary-color); transform: scale(1.15); }

/* --- Footer --- */
footer {
    background-color: #0d0d0d; padding: 40px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: auto;
    font-size: 0.85rem; color: #888;
}
.footer-content { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 20px; }
.footer-right { display: flex; align-items: center; gap: 15px; }
.footer-link { text-decoration: none; color: #888; transition: color 0.3s ease; }
.footer-link:hover { color: var(--primary-color); }

/* --- MODAL TWITCH --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9); z-index: 9999;
    display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    position: relative; width: 90%; max-width: 900px; background: #121212;
    padding: 10px; border-radius: 12px; box-shadow: 0 0 30px rgba(155, 89, 182, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.close-modal { position: absolute; top: -40px; right: 0; color: white; font-size: 30px; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: var(--primary-color); }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: black; }
.video-container iframe, .video-container #twitch-embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* --- Mobile Responsive & Menu Hamburguer --- */
@media (max-width: 768px) {
    /* Navbar ajustada */
    .navbar {
        padding: 15px 20px;
    }

    /* Esconder os links normalmente e prepará-los para deslizar */
    .nav-links {
        position: fixed;
        right: -100%; /* Começa escondido fora do ecrã à direita */
        top: 0; /* Começa logo no topo */
        height: 100vh; /* Altura total do ecrã */
        background-color: rgba(18, 18, 18, 0.98); /* Fundo quase opaco */
        display: flex;
        flex-direction: column; /* Links um debaixo do outro */
        align-items: center;
        justify-content: center;
        width: 70%; /* Largura do menu */
        transition: right 0.4s ease-in-out; /* Animação suave */
        z-index: 999; /* Fica por cima de tudo, mas debaixo do hambúrguer */
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        backdrop-filter: blur(10px);
    }

    /* Classe que o JavaScript vai adicionar para mostrar o menu */
    .nav-links.nav-active {
        right: 0; /* Traz o menu para dentro do ecrã */
    }

    /* Estilo dos links no telemóvel */
    .nav-links li {
        margin: 20px 0;
        opacity: 0; /* Começa invisível para animação */
    }

    /* Mostrar o ícone do Hambúrguer */
    .hamburger {
        display: block;
        z-index: 1000; /* Fica por cima do menu aberto */
        font-size: 1.8rem;
        cursor: pointer;
        color: white;
        transition: 0.3s;
    }

    /* Efeito de rodar o hambúrguer quando ativo (opcional, fica fixe) */
    .hamburger.toggle .fa-bars:before {
        content: "\f00d"; /* Muda o ícone para um X (FontAwesome code) */
    }

    /* Ajustes de tamanho de fonte no telemóvel */
    h1 { font-size: 2rem; }
    
    .footer-content { flex-direction: column; text-align: center; }
    
    .support-grid { flex-direction: column; align-items: center; }
    .support-card { width: 100%; max-width: 300px; }
    
    .partners-grid { flex-direction: column; align-items: center; }
    
    /* Importante para os novos cartões no telemóvel */
    .partner-card { width: 100%; max-width: 350px; }

    .social-icons { gap: 15px; }
    .social-icons a { font-size: 2.5rem; }
    
    .modal-content { width: 95%; margin: 0 auto; }
}

/* Animação para os links aparecerem (Fade In) */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }