* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- Cursores clássicos do Windows 98 (seta + mãozinha) ---- */
:root {
    --cursor-arrow: url("/img/cursors/arrow.svg") 1 1, auto;
    --cursor-hand: url("/img/cursors/hand.svg") 9 2, pointer;
}

html,
body {
    cursor: var(--cursor-arrow);
}

/* Mãozinha de "selecionar" em tudo que é clicável */
a,
button,
label,
summary,
select,
[role="button"],
[onclick],
.desktop-icon,
input[type="submit"],
input[type="reset"],
input[type="button"],
.title-bar-controls button {
    cursor: var(--cursor-hand);
}

/* Campos de texto mantêm o I-beam, como no Win98 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea {
    cursor: text;
}

body {
    /* Fonte autêntica do Windows 98 (vem embutida no 98.css) */
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    line-height: 1.4;
    color: #222;
    /* background-image: url('https://media.giphy.com/media/zC3vlpZ3eZBS0/giphy.gif'); */
    background-color: #008080;

    background-repeat: repeat;
    background-attachment: fixed;
    background-size: cover;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 20px 0;
    /* : linear-gradient(to bottom,#CB9DF0, #F0C1E1);background */
    background-color: #c0c0c0;
    border: 1px solid #313131;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 1vw;
    margin-right: 1vw;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 1vw;
}

nav a {
    text-decoration: none;
    color: #404040;
    font-weight: bold;
}

nav a:hover {
    color: #007bff;
}

footer {
    text-align: center;
    padding: 20px 0;
}

.scrollable {
    max-height: 74vh;
    overflow-y: auto;
    padding: 1rem;
    max-width: 100%;
}

.blog-post img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.read-more {
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    display: inline-block;
    padding: 8px 16px;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #c0c0c0;
    color:#404040;
    text-decoration: none;
    width: fit-content;
    border: 1px solid #313131;
}

.read-more:hover {
    background-color: #106ebe;
}

.blog-post {
    margin-bottom: 40px;
    border: 1px solid #313131;
    background: #fff;
    max-width: 100%;
}

/* Janela maximizada: ocupa a tela toda menos a taskbar (28px) */
.window.maximized {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 28px;
    width: auto;
    max-width: none;
    margin: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

/* Efeito CRT (tela antiga): scanlines + vignette sutis sobre tudo */
.crt-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        rgba(0, 0, 0, 0.10),
        rgba(0, 0, 0, 0.10) 1px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 3px
    );
}

.crt-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.28) 100%);
}

@media (prefers-reduced-motion: no-preference) {
    .crt-overlay {
        animation: crt-flicker 4s infinite ease-in-out;
    }
    @keyframes crt-flicker {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.93; }
    }
}

.window.maximized .window-body {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* Quando maximizada, a área de conteúdo preenche a janela */
.window.maximized .posts-container,
.window.maximized .scrollable {
    flex: 1;
}

.post-cover {
    max-height: 30vh;
    width: auto;
    object-fit: contain;
}

.blog-post-title {
    font-family: "Windows", "VT323", sans-serif;
    font-size: 1.5em;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: normal;
    font-style: normal;
}