/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #03173a 0%, #000713 100%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow-x: hidden;
}

/* Partículas de fundo */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
header {
    background: linear-gradient(120deg, rgba(3, 59, 143, 0.9), rgba(1, 3, 46, 0.9));
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #00d4ff, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow 2s ease-in-out infinite alternate;
}

nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Botões de navegação */
.btn-nav {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-nav:hover::before {
    width: 300%;
    height: 300%;
}

.btn-home {
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.btn-home:hover {
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    color: #fff;
    transform: scale(1.05);
}

.btn-logout {
    background: linear-gradient(45deg, #721e3c, #982a52);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.btn-logout:hover {
    background: linear-gradient(45deg, #982a52, #721e3c);
    color: #fff;
    transform: scale(1.05);
}

.btn-nav:not(.btn-home):not(.btn-logout) {
    background: linear-gradient(45deg, #033b8f, #01032e);
}

.btn-nav:not(.btn-home):not(.btn-logout):hover {
    background: linear-gradient(45deg, #01032e, #033b8f);
    color: #00d4ff;
}

/* Container */
.container {
    width: 85%;
    max-width: 1300px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(120deg, rgba(1, 34, 83, 0.85), rgba(1, 3, 46, 0.85));
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Post */
.post {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.post:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.5);
}

.post h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: #00d4ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.post p {
    margin: 12px 0;
    line-height: 1.7;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input,
form textarea {
    padding: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

form button {
    padding: 15px;
    background: linear-gradient(45deg, #1e3c72, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.4s ease;
}

form button:hover {
    background: linear-gradient(45deg, #00d4ff, #1e3c72);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
    transform: scale(1.02);
}

/* Error Message */
.error-message {
    background: linear-gradient(45deg, rgba(34, 1, 1, 0.9), rgba(152, 42, 82, 0.9));
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.4);
}

/* Animação Glow */
@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 15px #00d4ff, 0 0 25px #00d4ff;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 25px #00d4ff, 0 0 40px #00d4ff;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .btn-nav {
        font-size: 1rem;
        padding: 8px 15px;
    }

    .container {
        width: 90%;
        padding: 20px;
    }

    .post h2 {
        font-size: 1.4rem;
    }

    form button {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .btn-nav {
        width: 80%;
        margin: 0 auto;
    }

    header h1 {
        font-size: 1.6rem;
    }
}