/* ── PAGE THEME ── */
:root {
    --c1: #e3bba1;   /* drop-shadow */
    --c2: #a3c5e0;   /* card bg */
    --c3: #f0a3b0;   /* shadow */
    --c-text: #1a1a2e; /* text on card */
    --laranja: #ff4500; --amarelo: #ffd700; --azul: #3038d6; --coral: #ff6f61;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Federo', cursive;
    color: #fff;
    min-height: 100vh;
    background:
        linear-gradient(160deg, rgba(0,0,0,.65) 0%, rgba(0,0,60,.55) 100%),
        url('../imagens/background.jpg') no-repeat center center fixed;
    background-size: cover;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0010; }
::-webkit-scrollbar-thumb { background: var(--azul); }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

/* ── MARQUEE ── */
.marquee-bar {
    background: repeating-linear-gradient(90deg, var(--azul) 0, #1b1e8a 80px, #000 160px, var(--azul) 240px);
    border-bottom: 2px solid var(--amarelo);
    overflow: hidden; white-space: nowrap; padding: 5px 0;
}
.marquee-bar span {
    display: inline-block;
    animation: marquee 22s linear infinite;
    font-family: 'Sriracha', cursive;
    font-size: 13px; letter-spacing: 2px; color: #fff;
}
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── CONTAINER ── */
.container { width: 92%; max-width: 1000px; margin: 0 auto; padding: 0 16px 60px; }

/* ── HEADER ── */
header { text-align: center; padding: 48px 0 20px; }
.retro-title {
    font-family: 'Limelight', cursive;
    font-size: clamp(32px, 6vw, 58px);
    color: var(--laranja);
    text-shadow: 3px 3px 0 var(--amarelo), 6px 6px 0 #00bfff, 9px 9px 0 rgba(0,0,0,.4);
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ── NAV ── */
.nav-portal {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 12px; padding: 14px 20px;
    background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
    border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
    margin: 28px auto 0; width: fit-content;
}
.nav-portal a {
    font-family: 'Sriracha', cursive;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--azul), #1b1e8a);
    border: 3px groove var(--amarelo);
    border-radius: 8px; color: #fff; text-decoration: none; font-size: 17px;
    transition: .2s ease; box-shadow: 2px 2px 6px rgba(0,0,0,.5);
}
.nav-portal a:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 8px 20px rgba(255,255,255,.2);
    background: linear-gradient(135deg, #5058ff, #151873);
    color: var(--amarelo);
}

/* ── DIVIDER ── */
.divider { text-align: center; color: rgba(255,255,255,.25); font-size: 20px; letter-spacing: 6px; margin: 44px 0 20px; }

/* ── PAGE HERO ── */
.page-hero {
    text-align: center;
    margin-bottom: 40px;
}
.page-hero h1 {
    font-family: 'Audiowide', cursive;
    font-size: clamp(40px, 8vw, 80px);
    background-image: radial-gradient(closest-side, var(--c1), var(--c2), var(--c3));
    background-clip: text; -webkit-background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,.8));
    display: inline-block;
}
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

/* ── POSTS FEED ── */
.feed { display: flex; flex-direction: column; gap: 32px; }

.postbox {
    display: flex;
    gap: 24px;
    align-items: stretch;
    animation: slidein .5s ease both;
}
.postbox:nth-child(2) { animation-delay: .1s; }
.postbox:nth-child(3) { animation-delay: .2s; }
.postbox:nth-child(4) { animation-delay: .3s; }
.postbox:nth-child(5) { animation-delay: .4s; }
@keyframes slidein { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: none; } }

/* even posts: reverse direction */
.postbox.reverse { flex-direction: row-reverse; }

/* cover image */
.post-img {
    flex-shrink: 0;
    width: 200px;
}
.post-img img {
    width: 200px;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,.15);
    display: block;
    filter: drop-shadow(-5px -5px 3px var(--c1));
    transition: filter .3s, transform .3s;
    cursor: pointer;
}
.postbox.reverse .post-img img { filter: drop-shadow(5px -5px 3px var(--c1)); }
.post-img img:hover { transform: scale(1.03); filter: drop-shadow(0 0 12px var(--c3)); }

/* text card */
.post-card {
    flex: 1;
    background: var(--c2);
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 5px 5px 0 var(--c3);
    color: var(--c-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.postbox.reverse .post-card { box-shadow: -5px 5px 0 var(--c3); }

.post-date {
    font-family: 'Kaushan Script', cursive;
    font-size: 1.1em;
    color: #333;
    font-weight: bold;
}
.post-text {
    font-family: 'Sriracha', cursive;
    font-size: 1em;
    line-height: 1.7;
    color: #222;
}

/* ── FOOTER ── */
footer { text-align: center; padding: 36px 0 24px; border-top: 1px solid rgba(255,255,255,.12); color: #aaa; }
.social-links { margin-bottom: 18px; }
.social-links a {
    color: #fff; margin: 0 10px; font-size: 1.5em;
    text-decoration: none; display: inline-block;
    transition: color .25s, transform .2s;
}
.social-links a:hover { color: var(--coral); transform: translateY(-3px); }
.social-links a img {
    width: 24px; height: 24px; vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: filter .25s, transform .2s;
}
.social-links a:hover img { filter: brightness(0) saturate(100%) invert(56%) sepia(60%) saturate(500%) hue-rotate(310deg); transform: translateY(-3px); }
footer p { font-size: .88em; margin: 5px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .postbox, .postbox.reverse { flex-direction: column; }
    .post-img, .post-img img { width: 100%; height: 220px; }
}