:root {
    --p-bg: #f8fafc; --p-sidebar: #ffffff; --p-text: #334155; --p-accent: #0284c7;
    --s-bg: #0a0a0a; --s-primary: #dc2626; --s-text: #ffffff;
    --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] { --p-bg: #0f172a; --p-sidebar: #1e293b; --p-text: #e2e8f0; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { 
    overflow-x: hidden; width: 100vw; display: flex; flex-direction: column; 
    min-height: 100vh; min-height: 100dvh; 
    background: var(--p-bg); color: var(--p-text);
}
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* UI */
.flag-icon { width: 32px; height: 24px; object-fit: cover; border-radius: 4px; display: block; box-shadow: 0 0 5px rgba(0,0,0,0.2); }
/* Atualização: .btn-icon também se aplica a links <a> agora */
.btn-icon { text-decoration: none; border: 1px solid var(--p-text); background: none; color: var(--p-text); width: 45px; height: 45px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: var(--trans); padding: 0; }
.btn-icon:hover { background: rgba(0,0,0,0.1); }

/* SLIDER NA PAGINA (Pequeno) */
.slider-container { position: relative; width: 100%; height: 220px; background: #000; border-radius: 10px; overflow: hidden; border: 1px solid #333; transition: var(--trans); cursor: pointer; }
.slider-container:hover { border-color: var(--p-accent); box-shadow: 0 10px 20px rgba(0,0,0,0.3); transform: scale(1.02); }
.slides { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; pointer-events: none; }
.slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.slide img, .slide video { max-width: 100%; max-height: 100%; object-fit: contain; }
.slider-btn { display: none; } 
.slide-caption { display: none !important; }
.group-label { text-align: center; margin-top: 10px; font-weight: bold; color: var(--p-accent); margin-bottom: 20px; font-size: 1rem; }

/* PORTAL */
#portal-view { background: #000; display: flex; align-items: center; justify-content: center; min-height: 100vh; width: 100%; position: absolute; z-index: 999; top: 0; left: 0; padding: 20px; }
.portal-wrapper { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.portal-card { width: 320px; height: 450px; border-radius: 20px; cursor: pointer; position: relative; overflow: hidden; transition: var(--trans); border: 1px solid #333; background: #111; max-width: 100%; }
.portal-card:hover { transform: scale(1.05); z-index: 10; }
.personal-card:hover { border-color: var(--p-accent); box-shadow: 0 0 30px rgba(2, 132, 199, 0.3); }
.streamer-card:hover { border-color: var(--s-primary); box-shadow: 0 0 30px rgba(220, 38, 38, 0.3); }
.card-content { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; padding: 20px; }
.portal-img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin-bottom: 20px; border: 2px solid #333; }
.btn-enter { margin-top: 20px; padding: 10px 20px; border-radius: 30px; border: 1px solid white; font-size: 0.8rem; text-transform: uppercase; }
.divider { width: 1px; height: 200px; background: #333; }

/* PESSOAL */
#personal-view { display: flex; background: var(--p-bg); color: var(--p-text); min-height: 100vh; width: 100%; }
.sidebar { width: 280px; background: var(--p-sidebar); padding: 2rem; display: flex; flex-direction: column; border-right: 1px solid rgba(0,0,0,0.1); height: 100%; border-radius: 0px 0px 30px 0px}
.mobile-header { display: none; } 
.profile-section { text-align: center; margin-bottom: 3rem; display: block; }
.profile-section img { width: 100px; height: 100px; border-radius: 20px; margin-bottom: 1rem; object-fit: cover; box-shadow: 5px 5px 0 var(--p-accent); }
.nav-container { display: flex !important; flex-direction: column; flex: 1; gap: 10px; }
.sidebar nav.p-nav { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.nav-link { background: none; border: none; text-align: left; padding: 12px; font-size: 1rem; color: var(--p-text); cursor: pointer; border-radius: 8px; transition: var(--trans); }
.nav-link:hover, .nav-link.active { background: rgba(2, 132, 199, 0.1); color: var(--p-accent); font-weight: 600; }
.sidebar-footer { display: flex; gap: 10px; justify-content: space-between; margin-top: auto; }
.content-p { flex: 1; padding: 3rem 4rem; overflow-y: auto; height: 100%; }
.page-section h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--p-accent); border-bottom: 2px solid rgba(0,0,0,0.1); padding-bottom: 10px; }
.about-grid { display: flex; flex-direction: column; gap: 30px; }
.big-text p { font-size: 1.1rem; line-height: 1.6; }
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }

.i-card { 
    background: var(--p-sidebar); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid var(--p-accent); 
    text-align: center; 
    transition: var(--trans);
    cursor: default; /* Mostra que é interativo */
}
.i-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); background: rgba(2, 132, 199, 0.05); } 
.i-card i { font-size: 2rem; color: var(--p-accent); margin-bottom: 15px; }

/* EXP */
.timeline { border-left: 3px solid var(--p-accent); margin-left: 10px; padding-left: 25px; }
.event { margin-bottom: 40px; position: relative; }
.event::before { content: ''; position: absolute; left: -34px; top: 15px; width: 16px; height: 16px; background: var(--p-accent); border-radius: 50%; border: 3px solid var(--p-bg); }
.event-card { background: var(--p-sidebar); padding: 25px; border-radius: 15px; border: 1px solid rgba(0,0,0,0.05); transition: var(--trans); display: flex; gap: 20px; align-items: flex-start; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--p-accent); }
.event-icon { width: 50px; height: 50px; background: rgba(2, 132, 199, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--p-accent); font-size: 1.5rem; flex-shrink: 0; }
.event-content { flex: 1; }
.event .date { display: block; font-size: 0.9rem; color: #888; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
.event h3 { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }

/* SKILLS (Agora embutidas) */
.skills-wrapper-embedded { margin-top: 40px; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }

.skill-pill { 
    display: flex; align-items: center; gap: 12px; padding: 12px 25px; 
    background: var(--p-sidebar); border: 2px solid var(--p-accent); 
    border-radius: 50px; color: var(--p-text); font-weight: 600; 
    font-size: 1rem; transition: var(--trans); cursor: default; 
}
/* CORREÇÃO DE ÍCONES: Herdar cor do texto para funcionar em Dark/Light */
.skill-pill i { font-size: 1.3rem; color: inherit; transition: var(--trans); }

/* ESTADO DE HIGHLIGHT (Ativado via JS) */
.skill-pill.active-highlight {
    background: var(--p-accent);
    color: white;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
    transform: scale(1.05);
    border-color: transparent;
}

/* PORTFOLIO */
.folder-section { margin-bottom: 50px; }
.folder-section h2 { font-size: 1.5rem; color: var(--p-text); margin-bottom: 15px; border-left: 4px solid var(--p-accent); padding-left: 10px; }
.gallery-simple { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.gallery-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; cursor: default; background: transparent; border: none; overflow: visible; cursor: pointer; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.3); border-color: var(--p-accent); }
.gallery-item img, .gallery-item video { width: 100%; height: 220px; background: #000; border: 1px solid #333; border-radius: 10px; object-fit: contain; transition: var(--trans); }
.item-label { position: static; width: 100%; background: transparent; color: var(--p-accent); padding-top: 10px; font-size: 1rem; font-weight: bold; text-align: center; }

.form-clean input, .form-clean textarea { width: 100%; padding: 12px; margin-bottom: 15px; background: var(--p-sidebar); border: 1px solid #ccc; color: var(--p-text); }
.form-clean button { background: var(--p-accent); color: white; padding: 10px 20px; border: none; cursor: pointer; }

/* STREAMER */
#streamer-view { background: var(--s-bg); color: var(--s-text); flex-direction: column; min-height: 100vh; width: 100%; }
.streamer-nav { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; border-bottom: 2px solid var(--s-primary); background: rgba(0,0,0,0.9); flex-shrink: 0; }
.brand { font-size: 1.5rem; font-weight: 900; cursor: pointer; }
.brand span { color: var(--s-primary); }
.s-menu { display: flex; list-style: none; gap: 30px; }
.s-menu li { cursor: pointer; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; transition: 0.3s; }
.s-menu li:hover { color: var(--s-primary); text-shadow: 0 0 10px var(--s-primary); }
.s-controls { display: flex; gap: 10px; }
.s-controls button { border: 1px solid white; color: white; }
.s-controls .s-exit:hover { border-color: var(--s-primary); color: var(--s-primary); }
.content-s { flex: 1; overflow-y: auto; padding: 2rem; text-align: center; }
.logo-display { margin-top: 30px; display: flex; justify-content: center; }
.logo-display img { max-width: 300px; width: 100%; height: auto; object-fit: contain; }
.static-title { font-size: 4rem; font-weight: 900; color: white; text-transform: uppercase; margin-bottom: 5px; }
.role-list { color: var(--s-primary); font-weight: bold; letter-spacing: 1px; font-size: 1.1rem; margin-bottom: 20px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; max-width: 900px; margin: 20px auto; }
.spec { background: #111; padding: 15px; border: 1px solid #333; text-align: left; }
.spec span { display: block; color: var(--s-primary); font-size: 0.8rem; font-weight: bold; }
.part-link { color: var(--s-primary); text-decoration: none; font-weight: bold; border-bottom: 1px solid; }
.partners-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px; padding-bottom: 50px; }
.p-card { width: 300px; padding: 2rem; background: #111; border: 2px dashed; transform: skew(-5deg); text-decoration: none; color: white; transition: 0.3s; display: block; position: relative; }
.p-card:hover { transform: skew(-5deg) scale(1.05); }
.p-card.red { border-color: var(--s-primary); }
.p-card.white { border-color: white; }
.p-card .code { font-size: 2rem; font-weight: 900; margin: 10px 0; }
.p-card.red .code { color: var(--s-primary); }
.btn-sponsor { margin-top: 15px; display: inline-block; padding: 5px 10px; border: 1px solid white; font-size: 0.8rem; }
.sponsor-img { height: 60px; width: auto; object-fit: contain; margin-bottom: 10px; display: block; margin-left: auto; margin-right: auto; }
.social-popouts { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; padding-bottom: 50px; }
.pop { width: 200px; padding: 15px; background: #111; border: 1px solid #333; color: white; text-decoration: none; font-weight: bold; font-size: 1.1rem; transition: 0.3s; position: relative; }
.pop:hover { transform: translate(-8px, -8px); box-shadow: 8px 8px 0 var(--s-primary); border-color: var(--s-primary); }
.pop i { margin-right: 10px; }

/* === MOBILE === */
@media (max-width: 768px) {
    #portal-view { padding: 40px 20px; height: auto; min-height: 100dvh; overflow-y: auto; align-items: flex-start; }
    .portal-wrapper { flex-direction: column; gap: 30px; margin-top: 20px; }
    .divider { width: 100%; height: 1px; }
    .portal-card { height: 400px; width: 100%; max-width: 300px; }

    #personal-view { flex-direction: column; height: auto; }
    
    .sidebar { 
        width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); 
        padding: 15px; position: sticky; top: 0; z-index: 1000; background: var(--p-sidebar);
        flex-direction: column; align-items: stretch;
    }
    .profile-section { display: none; }
    
    .mobile-header { display: flex; justify-content: space-between; align-items: center; width: 100%; }
    .profile-header-mobile { display: block; font-weight: bold; font-size: 1.2rem; color: var(--p-text); cursor: pointer; }
    
    .burger-btn { background: none; border: 1px solid var(--p-text); color: var(--p-text); width: 35px; height: 35px; border-radius: 5px; cursor: pointer; font-size: 1.2rem; }

    .nav-container { display: none !important; flex-direction: column; margin-top: 15px; width: 100%; gap: 5px; }
    .sidebar.nav-open .nav-container { display: flex !important; animation: fadeIn 0.3s ease; }
    
    .nav-link { padding: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); }
    .sidebar-footer { justify-content: center; padding-top: 15px; margin-top: 10px; border-top: 1px solid rgba(0,0,0,0.05); }

    .content-p { padding: 20px 15px; height: auto; flex: 1; }
    .page-section h1 { font-size: 2rem; }
    .gallery-simple { grid-template-columns: 1fr; }
    .timeline { padding-left: 0; border: none; }
    .event::before { display: none; }
    .event-card { flex-direction: column; text-align: center; gap: 10px; }
    .event-icon { margin: 0 auto; }

    .streamer-nav { height: auto; padding: 20px; flex-direction: column; gap: 15px; }
    .brand { margin-bottom: 5px; font-size: 2rem; cursor: pointer; }
    .s-menu { display: flex; flex-direction: column; gap: 10px; width: 100%; align-items: center; }
    .s-menu li { font-size: 1rem; padding: 5px; }
    .s-controls { width: 100%; justify-content: center; margin-top: 5px; }
    .static-title { font-size: 2.2rem; }
    .role-list { font-size: 0.9rem; }
    .logo-display img { max-width: 200px; }
    .specs-grid { grid-template-columns: 1fr; }
    .pop { width: 100%; }
}

/* === SCROLLBARS === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { border-radius: 4px; }
#personal-view .sidebar::-webkit-scrollbar-thumb, #personal-view .content-p::-webkit-scrollbar-thumb { background: var(--p-accent); }
#streamer-view .content-s::-webkit-scrollbar-thumb { background: var(--s-primary); }
#portal-view::-webkit-scrollbar-thumb { background: #555; }

/* === LIGHTBOX STYLES === */
#lightbox { 
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; 
    overflow: hidden; background-color: rgba(0, 0, 0, 0.95); 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
}
.modal-content-wrapper { 
    display: flex; align-items: center; justify-content: center; 
    width: 100%; height: 80%; gap: 20px; position: relative; 
}
#modal-media-container { 
    max-width: 80%; max-height: 100%; display: flex; justify-content: center; align-items: center; 
}
#modal-media-container img, #modal-media-container video { 
    max-width: 100%; max-height: 80vh; object-fit: contain; box-shadow: 0 0 20px rgba(0,0,0,0.5); 
}
.close-btn { 
    position: absolute; top: 20px; right: 40px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 100;
}
.close-btn:hover { color: var(--p-accent); }
.modal-prev, .modal-next { 
    cursor: pointer; width: auto; padding: 16px; color: white; font-weight: bold; 
    font-size: 20px; transition: 0.3s; border-radius: 0 3px 3px 0; user-select: none; -webkit-user-select: none;
    background: rgba(0,0,0,0.5); border: none; z-index: 100;
}
.modal-prev:hover, .modal-next:hover { background-color: var(--p-accent); }
#modal-caption { text-align: center; color: #ccc; padding: 10px 0; height: 30px; }