/* --- Estilos Globais e Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #2E3032; /* Fundo cinza escuro */
    color: #FFFFFF; /* Texto branco */
    font-family: 'Instrument Serif', serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Maintain the custom cursor if you have the asset, or use a default one that fits */
    cursor: url('data:image/x-icon;base64,AAACAAEAICACAAIAAgAAAAAAgAAAAAAAAAAAAAAAP///wAAACH5BAEAAAIALAAAAAABAAEAAAICTAEAOw=='), auto;
}

/* --- Container das Janelas --- */
.windows-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px; /* Aumentei o gap para mais "desktop space" */
    padding: 30px; /* Aumentei o padding */
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    flex-direction: row;
    position: relative;
}

/* --- Pin (removido, mas poderia ser um ícone de "pin" com borda) --- */
.pin {
    display: none;
}

/* --- Estilos das Janelas Individuais --- */
.window {
    background: #F7F4E5; /* Fundo creme/off-white para janelas (mais quente que branco puro) */
    /* Borda tripla para o efeito retrô */
    border: 2px solid #000000; /* Borda preta externa */
    border-right: 2px solid #555555; /* Sombra sutil para a borda direita */
    border-bottom: 2px solid #555555; /* Sombra sutil para a borda inferior */

    padding: 10px; /* Reduzi o padding interno para simular janelas mais "cheias" */
    width: 320px;
    text-align: left;
    /* Adicione uma sombra sutil para dar profundidade de empilhamento */
    box-shadow: 6px 6px 0px rgba(0,0,0,0.5); /* Sombra mais marcada e sem blur */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Transição mais rápida */
}
.window:hover {
    transform: translateY(-4px) translateX(-4px); /* Movimento diagonal ao passar o mouse */
    box-shadow: 10px 10px 0px rgba(0,0,0,0.7); /* Sombra mais acentuada no hover */
}
/* Estilo para a janela que aparece dentro do pop-up. */
.wide-window {
    width: 100%;
    padding: 0;
    border: none; /* A janela interna não terá bordas duplas, o popup já tem */
    box-shadow: none;
    transform: none;
}
.wide-window:hover {
    transform: none;
    border-color: none;
    box-shadow: none;
}

.title-bar {
    background: #000000; /* Barra de título preta (ou #333333 para cinza escuro) */
    color: #FFD700; /* Amarelo vibrante para o título */
    padding: 6px 10px; /* Mais padding para o título */
    font-size: 20px;
    font-weight: bold;
    text-align: left; /* Título alinhado à esquerda na barra */
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px outset #CCCCCC; /* Efeito 3D para a barra de título */
    border-bottom: 2px solid #555555;
    border-right: 2px solid #555555;
}

/* --- CLOSE BUTTON (REVISITED) --- */
/* The close button itself, visually */
.close-button {
    /* Reverted to a more standard background that looks like an old button */
    background: #C0C0C0; /* Standard grey for old Windows buttons */
    border: 2px outset #FFFFFF; /* Light border on top/left for 3D effect */
    border-right-color: #808080; /* Darker border on right/bottom */
    border-bottom-color: #808080;
    color: #000000; /* Black for the 'X' icon */
    text-decoration: none;
    font-size: 20px; /* Slightly smaller 'X' for better fit */
    font-weight: bold; /* Make the 'X' stand out */
    padding: 1px 6px; /* Padding for the 'X' within the button */
    line-height: 1; /* Aligns the 'X' vertically */
    cursor: pointer;
    margin-left: 10px; /* Some space from the title */
    display: inline-flex; /* Use flexbox to center the X if needed */
    align-items: center;
    justify-content: center;
    height: 24px; /* Fixed height for consistency */
    width: 24px; /* Fixed width for consistency */
    flex-shrink: 0; /* Prevents it from shrinking on smaller titles */
}

.close-button:hover {
    background: #D0D0D0; /* Slightly lighter on hover */
    border: 2px outset #FFFFFF; /* Maintain outset on hover or change to inset for click effect */
    border-right-color: #808080;
    border-bottom-color: #808080;
    color: #000000;
}

.close-button:active { /* Click effect */
    background: #808080; /* Darker when pressed */
    border: 2px inset #FFFFFF; /* Inset border to simulate pressing */
    border-top-color: #000000;
    border-left-color: #000000;
    transform: translate(1px, 1px); /* Shift slightly to the right/down */
}

.content {
    padding: 0; /* Adjusted so padding comes from the .window */
}

/* --- Estilos Específicos de Janelas (mantido) --- */
.window:nth-child(1) {
    width: 400px; /* Ajustei a largura */
}
.window:nth-child(3) {
    width: 400px;
}
.window:nth-child(2) { /* Janela de navegação */
    width: 320px;
}
.window:nth-child(2) .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* --- Títulos, Parágrafos e Links (dentro das janelas) --- */
h1 {
    color: #000000;
    font-size: 32px; /* Ligeiramente menor */
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0px #CCCCCC; /* Sombra sutil para texto de título */
}
p {
    color: #333333;
    font-weight: normal;
    line-height: 1.5; /* Ajustei o espaçamento entre linhas */
    font-size: 16px; /* Tamanho padrão para parágrafos */
}
a {
    color: #0000EE; /* Links azuis como em sistemas antigos */
    text-decoration: underline; /* Links sempre sublinhados */
    transition: color 0.1s ease;
}
a:hover {
    color: #551A8B; /* Roxo escuro no hover, cor clássica de links visitados */
    text-decoration: underline;
}

/* --- Estilos dos Botões de Navegação (na página principal) --- */
.main-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 0;
    flex-wrap: wrap;
}
.main-links button {
    background-color: #C0C0C0; /* Standard grey for old Windows buttons */
    border: 2px outset #FFFFFF; /* Borda 3D "para fora" */
    border-right-color: #808080;
    border-bottom-color: #808080;
    color: #000000; /* Texto preto */
    padding: 10px 18px; /* Mais padding para os botões */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 0;
    cursor: pointer;
    border-radius: 0; /* Bordas retas */
    transition: all 0.05s ease-out; /* Transição muito rápida para simular clique */
}
.main-links button:active { /* Efeito de "clicado" */
    background-color: #808080; /* Darker when pressed */
    border: 2px inset #FFFFFF; /* Inset border to simulate pressing */
    border-top-color: #000000;
    border-left-color: #000000;
    transform: translateY(1px) translateX(1px); /* Move a pixel to simulate the click */
}
.main-links button:hover {
    background-color: #D0D0D0; /* Slightly lighter on hover */
}


/* --- Estilos dos Itens de Mídia (dentro das páginas de conteúdo/popups) --- */
.media-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 1px dashed #AAAAAA; /* Linha divisória mais clássica */
    padding-bottom: 25px;
}
.media-item:last-child {
    border-bottom: none;
}
.media-item img {
    max-width: 100px; /* Imagens um pouco menores */
    height: auto;
    border: 2px solid #000000; /* Borda preta */
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5); /* Sombra sutil para a imagem */
}
.comment {
    font-size: 16px; /* Tamanho padrão */
    line-height: 1.5;
    max-width: 500px;
    color: #333333;
}
.titulo {
    color: #000000;
    font-size: 20px; /* Ajustei o tamanho da fonte */
    font-weight: bold;
    margin-bottom: 5px;
}
.rating {
    display: inline-block;
    font-size: 18px; /* Tamanho das estrelas */
    color: #AAAAAA; /* Estrelas não selecionadas em cinza */
    margin-top: 10px;
}
.rating .star {
    cursor: default;
}
.rating .star.selected {
    color: #FFD700; /* Amarelo vibrante para estrelas selecionadas */
}

/* --- Estilos da Barra de Progresso --- */
.window:nth-child(3) .content img {
    max-width: 120px; /* Reduzi um pouco a imagem da barra de progresso */
    height: auto;
    display: block;
    margin: 10px auto;
    border: 2px solid #000000; /* Borda preta */
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}
.progress-bar {
    width: 100%;
    background-color: #DDDDDD; /* Fundo da barra de progresso mais claro */
    border-radius: 0; /* Bordas retas */
    height: 18px; /* Altura um pouco maior */
    margin-top: 8px;
    overflow: hidden;
    border: 2px inset #888880; /* Efeito 3D de "afundado" */
}
.progress-bar-fill {
    height: 100%;
    background-color: #00AA00; /* Verde clássico de barra de progresso */
    width: 42%;
    border-radius: 0;
}
.progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #333333;
}

/* --- Galeria de Imagens (usada em fotos.html) --- */
.gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 8px;
    cursor: pointer;
    border: 2px solid #000000;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

/* --- Estilos do Pop-up (reintroduzidos e estilizados como janela) --- */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #F7F4E5; /* Fundo creme/off-white */
    border: 2px solid #000000; /* Borda preta externa */
    border-right: 2px solid #555555; /* Sombra sutil para a borda direita */
    border-bottom: 2px solid #555555; /* Sombra sutil para a borda inferior */

    padding: 10px; /* Reduzi o padding interno do popup */
    width: 750px; /* Aumentei um pouco a largura do popup */
    max-width: 95%; /* Garante responsividade */
    max-height: 90vh; /* Altura máxima para evitar estouro */
    overflow-y: auto;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.6); /* Sombra mais marcada para o popup */
    z-index: 1001;
}
.popup .title-bar {
    cursor: default;
    text-align: left;
    background: #000000; /* Barra de título preta */
    color: #FFD700;
    margin-bottom: 15px; /* Espaçamento menor */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px outset #CCCCCC; /* Efeito 3D para a barra de título do popup */
    border-bottom: 2px solid #555555;
    border-right: 2px solid #555555;
}

/* --- Overlay de Imagem em Tela Cheia (mantido) --- */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 4px solid #FFFFFF; /* Borda branca na imagem em tela cheia */
}