/* --- VARIÁVEIS E CONFIGURAÇÕES GERAIS --- */
:root {
    --cs-green: #4b5844;       /* Verde da Janela */
    --cs-green-dark: #394035;  /* Verde Escuro (Fundo Inputs) */
    --cs-yellow: #dcb659;      /* Amarelo Texto */
    --cs-border-light: #63705a;
    --cs-border-dark: #2a3026;
}

/* Importando a fonte LOCAL (Explico no passo 5 onde baixar) */
@font-face {
    font-family: 'CSLogo';
    /* O ../ volta uma pasta para acessar assets */
    src: url('../assets/fonts/cs_logo.ttf') format('truetype'); 
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }

body {
    font-family: 'Tahoma', 'Verdana', sans-serif;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-size: 11px;
}

/* --- TELA DE BOOT --- */
#boot-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 9999;
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 40px;
    cursor: pointer;
}

.console-log {
    font-family: 'Courier New', monospace; color: #ffb400; 
    font-size: 14px; line-height: 1.5;
}

.start-hint {
    color: #fff; font-size: 20px; margin-top: 20px; font-weight: bold;
    animation: pulse 1s infinite alternate;
}
@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }

/* --- BACKGROUND --- */
.background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Background Local */
    background-image: url('../assets/images/background.jpg');
    background-size: cover; background-position: center;
    filter: brightness(0.5); z-index: -2;
}

.vignette {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0) 60%, rgba(0,0,0,1) 100%);
    z-index: -1; pointer-events: none;
}

/* --- LOGO E MENU --- */
.cs-logo {
    position: absolute; top: 30px; left: 40px;
    font-family: 'CSLogo', sans-serif; font-size: 42px; 
    color: #fff; opacity: 0.9; z-index: 10;
}

.sidebar { position: absolute; bottom: 50px; left: 40px; z-index: 10; width: 200px; }

.menu-item {
    font-size: 20px; color: #ccc; margin-bottom: 10px; cursor: pointer;
    font-weight: bold; text-decoration: none; display: block;
    transition: transform 0.1s; text-shadow: 2px 2px 2px #000;
}
.menu-item:hover, .active-item { color: var(--cs-yellow); transform: translateX(5px); }

/* --- JANELA VGUI --- */
.window-frame {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 650px; height: 460px;
    background-color: var(--cs-green);
    border-top: 1px solid var(--cs-border-light);
    border-left: 1px solid var(--cs-border-light);
    border-right: 2px solid var(--cs-border-dark);
    border-bottom: 2px solid var(--cs-border-dark);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; z-index: 50;
}

.window-header {
    padding: 5px 8px; cursor: grab;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: bold; color: var(--cs-yellow);
}
.close-btn { cursor: pointer; color: #fff; }

/* --- ABAS (TABS) --- */
.tabs { display: flex; padding: 0 8px; margin-top: 5px; }

.tab-btn {
    padding: 6px 12px; margin-right: 2px;
    background-color: var(--cs-green-dark);
    border: 1px solid var(--cs-border-light); border-bottom: none;
    color: #aaa; cursor: pointer; font-size: 11px;
}

.tab-btn.active {
    background-color: var(--cs-green); color: var(--cs-yellow);
    font-weight: bold; height: 28px; position: relative; top: 1px; z-index: 2;
}

.tab-content-container {
    flex: 1; margin: 0 8px 8px 8px;
    border: 1px solid var(--cs-border-light);
    border-right: 1px solid var(--cs-border-dark);
    border-bottom: 1px solid var(--cs-border-dark);
    padding: 15px; background: var(--cs-green);
    position: relative; z-index: 1; overflow-y: auto;
}

.tab-pane { display: none; height: 100%; }
.tab-pane.active { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- LAYOUT DAS ABAS --- */
/* Perfil */
.profile-layout { display: flex; gap: 20px; height: 100%; }
.pic-frame {
    width: 160px; height: 180px; background: #000;
    border: 2px inset var(--cs-green);
}
.pic-frame img { width: 100%; height: 100%; object-fit: cover; }
.profile-data h1 { color: var(--cs-yellow); font-size: 18px; margin-bottom: 5px; }
.highlight { color: #fff; font-weight: bold; margin-bottom: 10px; display: block; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 5px; color: #ddd; }
.stat-bar { color: var(--cs-yellow); }

/* Skills */
.section-title { background: var(--cs-green-dark); padding: 5px; margin-bottom: 10px; color: var(--cs-yellow); }
.skill-row {
    display: flex; justify-content: space-between; border-bottom: 1px dotted var(--cs-border-light);
    padding: 4px 0; color: #eee;
}
.skill-key { color: var(--cs-yellow); font-weight: bold; width: 50px; }

/* Galeria */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item {
    background: #000; border: 1px solid var(--cs-border-light); height: 100px;
    cursor: pointer; position: relative; overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.2s; }
.gallery-item:hover img { opacity: 1; transform: scale(1.1); }
.gallery-label {
    position: absolute; bottom: 0; width: 100%; background: rgba(0,0,0,0.7);
    color: #fff; font-size: 10px; text-align: center;
}

/* Contato */
.contact-box {
    background: var(--cs-green-dark); border: 1px inset var(--cs-green);
    padding: 20px; text-align: center; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
}
.email-text { font-family: 'Courier New'; margin: 15px 0; font-size: 14px; }
.action-buttons { display: flex; gap: 10px; justify-content: center; }

/* --- RODAPÉ --- */
.window-footer {
    padding: 8px 12px; display: flex; justify-content: flex-end; gap: 8px;
}
.btn-action {
    background: var(--cs-green); color: var(--cs-yellow);
    border-top: 1px solid var(--cs-border-light);
    border-left: 1px solid var(--cs-border-light);
    border-right: 1px solid var(--cs-border-dark);
    border-bottom: 1px solid var(--cs-border-dark);
    padding: 4px 16px; cursor: pointer; font-weight: bold; text-decoration: none; font-size: 11px;
}
.btn-action:hover { background: #596652; color: #fff; }
.btn-action:active { border: 1px solid var(--cs-border-dark); transform: translate(1px, 1px); }

/* Mobile */
@media (max-width: 700px) {
    .window-frame { width: 95%; height: 80vh; }
    .sidebar, .cs-logo { display: none; }
    .profile-layout { flex-direction: column; }
    .pic-frame { width: 100px; height: 100px; margin: 0 auto 10px auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}