/* =======================================================
   ROCKBOOK X — STYLE.CSS
   Tema: MegaMan X / Cyberpunk Futurista
======================================================= */

/* ===== RESET ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===== BODY ===== */

body{

    font-family:'Orbitron', sans-serif;

    background:
    linear-gradient(rgba(0,0,0,0.82), rgba(0,0,0,0.94)),
    url("https://images.unsplash.com/photo-1515879218367-8466d910aaa4?q=80&w=1920")
    no-repeat center center fixed;

    background-size:cover;

    color:#d8eeff;

    min-height:100vh;

    overflow-x:hidden;
}

/* ===== SCROLL ===== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#06101d;
}

::-webkit-scrollbar-thumb{

    background:#16b5ff;

    border-radius:10px;

    box-shadow:
    0 0 10px #16b5ff;
}

/* ===== TOPBAR ===== */

.topbar{

    position:sticky;
    top:0;

    width:100%;

    height:78px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 25px;

    background:rgba(3,8,20,0.92);

    border-bottom:2px solid #18b8ff;

    backdrop-filter:blur(8px);

    z-index:999;

    box-shadow:
    0 0 20px rgba(24,184,255,0.4),
    0 0 40px rgba(24,184,255,0.15);
}

/* ===== LOGO ===== */

.logo{

    font-size:1.8rem;
    font-weight:700;

    color:#47d3ff;

    letter-spacing:2px;

    text-shadow:
    0 0 5px #47d3ff,
    0 0 15px #47d3ff,
    0 0 30px #47d3ff;
}

/* ===== BUSCADOR ===== */

.topbar input{

    width:35%;

    padding:13px 18px;

    border:none;
    outline:none;

    border-radius:14px;

    background:#091523;

    color:#dff7ff;

    border:1px solid #1b8fd1;

    transition:0.3s;
}

.topbar input::placeholder{
    color:#7aa9c2;
}

.topbar input:focus{

    border:1px solid #48d9ff;

    box-shadow:
    0 0 10px #16b5ff,
    0 0 25px rgba(22,181,255,0.5);
}

/* ===== ICONOS ===== */

.top-icons{

    display:flex;
    gap:12px;
}

.top-icons button{

    position:relative;

    width:46px;
    height:46px;

    border:none;

    border-radius:12px;

    background:#0c1726;

    color:#62d8ff;

    font-size:1rem;

    cursor:pointer;

    transition:0.3s;

}

.top-icons button:hover{

    transform:translateY(-4px);

    background:#16b5ff;

    color:black;

    box-shadow:
    0 0 15px #16b5ff,
    0 0 30px rgba(22,181,255,0.7);
}

/* ===== CONTENEDOR ===== */

.container{

    width:100%;

    display:grid;

    grid-template-columns:280px 1fr 300px;

    gap:25px;

    padding:25px;
}

/* ===== SIDEBAR ===== */

.sidebar{

    background:rgba(5,12,24,0.9);

    border:1px solid #1599d6;

    border-radius:24px;

    padding:22px;

    height:fit-content;

    box-shadow:
    0 0 20px rgba(22,181,255,0.18);
}

/* ===== PERFIL ===== */

.profile-card{

    text-align:center;

    margin-bottom:30px;
}

.profile-card img{

    width:125px;
    height:125px;

    object-fit:cover;

    border-radius:50%;

    border:3px solid #16b5ff;

    margin-bottom:15px;

    box-shadow:
    0 0 15px #16b5ff,
    0 0 30px rgba(22,181,255,0.5);
}

.profile-card h3{

    color:#5ed9ff;

    margin-bottom:8px;
}

.profile-card p{

    color:#8fb5cc;

    font-size:0.9rem;
}

/* ===== MENU ===== */

.sidebar nav{

    display:flex;
    flex-direction:column;

    gap:14px;
}

.sidebar nav a{

    text-decoration:none;

    color:#d8eeff;

    padding:15px;

    border-radius:14px;

    background:#0f1e30;

    border:1px solid transparent;

    transition:0.3s;
}

.sidebar nav a:hover{

    background:#16b5ff;

    color:black;

    border:1px solid white;

    transform:translateX(5px);

    box-shadow:
    0 0 12px #16b5ff;
}

/* ===== FEED ===== */

.feed{

    display:flex;
    flex-direction:column;

    gap:25px;
}

/* ===== CREAR POST ===== */

.create-post{

    background:rgba(5,12,24,0.92);

    border:1px solid #1599d6;

    border-radius:24px;

    padding:22px;

    box-shadow:
    0 0 18px rgba(22,181,255,0.18);
}

.create-post textarea{

    width:100%;
    height:120px;

    resize:none;

    border:none;
    outline:none;

    padding:16px;

    border-radius:18px;

    background:#08111d;

    color:white;

    font-family:Arial, sans-serif;

    border:1px solid #163e5f;

    margin-bottom:15px;
}

.create-post textarea::placeholder{
    color:#7aa9c2;
}

/* ===== BOTONES CREAR POST ===== */

.post-actions{

    display:flex;
    justify-content:space-between;
}

.post-actions button{

    padding:12px 20px;

    border:none;

    border-radius:14px;

    background:#10253d;

    color:#70dcff;

    cursor:pointer;

    transition:0.3s;
}

.post-actions button:hover{

    background:#16b5ff;

    color:black;

    transform:translateY(-3px);

    box-shadow:
    0 0 12px #16b5ff;
}

/* ===== POSTS ===== */

.post{

    background:rgba(5,12,24,0.94);

    border:1px solid #1599d6;

    border-radius:24px;

    overflow:hidden;

    box-shadow:
    0 0 18px rgba(22,181,255,0.15);
}

/* ===== HEADER POST ===== */

.post-header{

    display:flex;
    align-items:center;

    gap:15px;

    padding:20px;
}

.post-header img{

    width:60px;
    height:60px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #16b5ff;

    box-shadow:
    0 0 10px rgba(22,181,255,0.5);
}

.post-header h4{

    color:#76e2ff;

    margin-bottom:4px;
}

.post-header span{

    color:#89aac0;

    font-size:0.8rem;
}

/* ===== TEXTO POST ===== */

.post p{

    padding:0 20px 20px;

    line-height:1.6;

    color:#d7ebff;
}

/* ===== IMAGEN POST ===== */

.post-image{

    width:100%;

    max-height:550px;

    object-fit:cover;

    border-top:1px solid #183650;
    border-bottom:1px solid #183650;
}

/* ===== BOTONES POST ===== */

.post-buttons{

    display:flex;
    justify-content:space-around;

    padding:18px;
}

.post-buttons button{

    width:30%;

    padding:12px;

    border:none;

    border-radius:14px;

    background:#10253d;

    color:#70dcff;

    cursor:pointer;

    transition:0.3s;
}

.post-buttons button:hover{

    background:#16b5ff;

    color:black;

    transform:translateY(-2px);

    box-shadow:
    0 0 15px #16b5ff;
}

/* ===== PANEL DERECHO ===== */

.right-panel{

    display:flex;
    flex-direction:column;

    gap:22px;
}

/* ===== NOTIFICACIONES ===== */

.notifications,
.chat-preview{

    background:rgba(5,12,24,0.92);

    border:1px solid #1599d6;

    border-radius:24px;

    padding:22px;

    box-shadow:
    0 0 18px rgba(22,181,255,0.15);
}

.notifications h3,
.chat-preview h3{

    color:#67dcff;

    margin-bottom:16px;
}

.notifications p{

    margin-bottom:14px;

    color:#c7e7ff;
}

/* ===== CHAT ===== */

.chat-preview a{

    text-decoration:none;

    display:block;

    padding:15px;

    border-radius:14px;

    background:#10253d;

    color:#70dcff;

    transition:0.3s;
}

.chat-preview a:hover{

    background:#16b5ff;

    color:black;

    box-shadow:
    0 0 12px #16b5ff;
}

/* ===== EFECTO HUD ===== */

.post,
.sidebar,
.notifications,
.chat-preview,
.create-post{

    position:relative;
}

.post::before,
.sidebar::before,
.notifications::before,
.chat-preview::before,
.create-post::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:2px;

    background:linear-gradient(
    90deg,
    transparent,
    #16b5ff,
    transparent
    );

    animation:hudScan 3s linear infinite;
}

@keyframes hudScan{

    0%{
        opacity:0;
        transform:translateX(-100%);
    }

    50%{
        opacity:1;
    }

    100%{
        opacity:0;
        transform:translateX(100%);
    }
}

/* ===== RESPONSIVE ===== */

@media(max-width:1100px){

    .container{

        grid-template-columns:1fr;
    }

    .topbar{

        flex-wrap:wrap;

        height:auto;

        gap:15px;

        padding:15px;
    }

    .topbar input{

        width:100%;
    }
}

/* ===== CELULAR ===== */

@media(max-width:700px){

    .container{

        padding:15px;
    }

    .sidebar,
    .right-panel{

        display:none;
    }

    .topbar{

        padding:12px;
    }

    .logo{

        font-size:1.2rem;
    }

    .post-buttons button{

        font-size:0.8rem;
    }
}

/* ===================================
   BADGE AZUL
=================================== */

.badge{

    position:absolute;

    top:5px;
    right:5px;

    width:10px;
    height:10px;

    border-radius:50%;

    background:#16b5ff;

    box-shadow:
    0 0 10px #16b5ff;

    animation:pulseBlue 1.5s infinite;
}

@keyframes pulseBlue{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.4);
    }

    100%{
        transform:scale(1);
    }
}

/* ===================================
   DROPDOWN
=================================== */

.dropdown-menu{

    position:fixed;

    top:90px;

    right:20px;

    width:320px;

    background:#08111d;

    border:1px solid #16b5ff;

    border-radius:20px;

    display:none;

    z-index:10000;

    overflow:hidden;

    box-shadow:
    0 0 20px rgba(22,181,255,.4);

    animation:dropdownOpen .25s ease;
}

#messagesMenu{

    right:20px;
}

#notificationsMenu{

    right:80px;
}

@keyframes dropdownOpen{

    from{

        opacity:0;
        transform:translateY(-10px);
    }

    to{

        opacity:1;
        transform:translateY(0);
    }
}

.dropdown-menu h3{

    padding:15px;

    color:#67dcff;

    border-bottom:1px solid #16445f;
}

.dropdown-item{

    padding:15px;

    cursor:pointer;

    border-bottom:1px solid #10243b;

    transition:.25s;
}

.dropdown-item:hover{

    background:#10243b;

    padding-left:25px;
}

#imagePreview{

    width:100%;

    max-height:300px;

    object-fit:cover;

    border-radius:15px;

    margin-bottom:15px;

    border:2px solid #16b5ff;

    box-shadow:
    0 0 15px rgba(22,181,255,.4);
}