* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background-color: #0c001f;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    background: rgba(12, 0, 31, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    z-index: 10;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

main {
    padding: 120px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}

#changelog-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: card-enter 0.6s ease-out forwards;
    overflow: hidden;
}

.pinned-post {
    position: absolute;
    top: 20px;
    right: -50px;
    background-color: #b571ff;
    color: #fff;
    padding: 5px 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pinned-post span {
    transform: rotate(-45deg);
}


@keyframes card-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.author-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.post-date {
    font-size: 0.85rem;
    color: #aaa;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    color: #fff;
}

.tag.owner { background-color: #6800a8; }
.tag.admin { background-color: #ff0000; }
.tag.designer { background-color: #4d7cff; }
.tag.dev { background-color: #050505; }
.tag.investidor { background-color: #00ff20; }


.post-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #b571ff;
}

.post-content p {
    line-height: 1.7;
    margin-bottom: 1em;
    color: #d1d1d1;
}

.post-content ul {
    list-style-position: inside;
    padding-left: 10px;
    margin-bottom: 1em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content code {
    background-color: rgba(0,0,0,0.4);
    padding: 3px 6px;
    border-radius: 5px;
    font-family: monospace;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.post-gallery img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.post-gallery img:hover {
    transform: scale(1.05);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.visible .modal-image {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #ccc;
}

.main-footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    color: #aaa;
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 70%; height: 100vh; background: rgba(20, 1, 46, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; transition: right 0.4s ease-in-out; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    main { padding-top: 100px; }
    .page-title h1 { font-size: 2.5rem; }
}