/* ======================================================
   PERFIL_ESTILO.CSS
   Rockbook X — MegaMan X Cyberpunk Edition
   Versión optimizada (menos consumo)
====================================================== */

/* ===== RESET ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===== BODY ===== */

body{

    font-family:'Orbitron', sans-serif;

    background:
    linear-gradient(rgba(0,0,0,0.88), rgba(0,0,0,0.94)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=1920")
    no-repeat center center fixed;

    background-size:cover;

    color:#d7efff;

    min-height:100vh;

    overflow-x:hidden;
}

/* ===== SCROLL ===== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#07111d;
}

::-webkit-scrollbar-thumb{

    background:#16b5ff;

    border-radius:10px;
}

/* ===== TOPBAR ===== */

.topbar{

    width:100%;
    height:75px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 25px;

    position:sticky;
    top:0;

    z-index:999;

    background:rgba(4,10,20,0.95);

    border-bottom:2px solid #16b5ff;

    backdrop-filter:blur(6px);

    /* SOMBRA FIJA */
    box-shadow:
    0 0 12px rgba(22,181,255,0.25);
}

/* ===== LOGO ===== */

.logo{

    font-size:1.7rem;
    font-weight:700;

    color:#5fddff;

    letter-spacing:2px;

    text-shadow:
    0 0 6px #16b5ff;
}

/* ===== SEARCH ===== */

.search-box input{

    width:350px;

    padding:12px 18px;

    border:none;
    outline:none;

    border-radius:14px;

    background:#0a1522;

    color:white;

    border:1px solid #1c8ec7;

    transition:0.25s;
}

.search-box input::placeholder{
    color:#87a8bf;
}

.search-box input:focus{

    border:1px solid #46d6ff;

    box-shadow:
    0 0 8px rgba(22,181,255,0.35);
}

/* ===== ICONOS ===== */

.top-icons{

    display:flex;
    gap:12px;
}

.top-icons button{

    width:45px;
    height:45px;

    border:none;

    border-radius:12px;

    background:#102031;

    color:#6ddcff;

    cursor:pointer;

    transition:
    background 0.2s,
    transform 0.2s;
}

.top-icons button:hover{

    background:#16b5ff;

    color:black;

    transform:translateY(-2px);
}

/* ===== PERFIL ===== */

.profile-container{

    width:100%;
}

/* ===== BANNER ===== */

.banner{

    width:100%;
    height:320px;

    overflow:hidden;

    border-bottom:3px solid #16b5ff;
}

.banner img{

    width:100%;
    height:100%;

    object-fit:cover;

    /* evita animaciones pesadas */
    transform:none;
}

/* ===== PROFILE INFO ===== */

.profile-info{

    width:90%;

    margin:auto;

    display:flex;
    align-items:flex-end;

    gap:25px;

    margin-top:-90px;

    position:relative;
}

/* ===== FOTO ===== */

.profile-image img{

    width:180px;
    height:180px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid #16b5ff;

    background:black;

    /* sombra ligera */
    box-shadow:
    0 0 12px rgba(22,181,255,0.45);
}

/* ===== TEXTO ===== */

.profile-text{

    margin-bottom:20px;
}

.profile-text h1{

    font-size:2.2rem;

    color:#6bddff;

    margin-bottom:10px;

    text-shadow:
    0 0 5px rgba(22,181,255,0.4);
}

.rank{

    color:#89b8d3;

    margin-bottom:12px;
}

.bio{

    max-width:700px;

    line-height:1.6;

    color:#d3e9ff;
}

/* ===== MAIN ===== */

.main-container{

    width:90%;

    margin:auto;

    display:grid;

    grid-template-columns:300px 1fr;

    gap:25px;

    padding-top:30px;
    padding-bottom:40px;
}

/* ===== LEFT PANEL ===== */

.left-panel{

    display:flex;
    flex-direction:column;

    gap:20px;
}

/* ===== CARDS ===== */

.card{

    background:rgba(5,12,24,0.94);

    border:1px solid #1599d6;

    border-radius:22px;

    padding:22px;

    /* sombra ligera fija */
    box-shadow:
    0 0 10px rgba(22,181,255,0.12);
}

.card h3{

    margin-bottom:18px;

    color:#6addff;
}

.card p{

    margin-bottom:12px;

    color:#d5ecff;
}

/* ===== FRIEND ===== */

.friend{

    display:flex;
    align-items:center;

    gap:12px;

    margin-bottom:15px;
}

.friend img{

    width:50px;
    height:50px;

    border-radius:50%;

    object-fit:cover;

    border:2px solid #16b5ff;
}

/* ===== FEED ===== */

.feed{

    display:flex;
    flex-direction:column;

    gap:25px;
}

/* ===== CREATE POST ===== */

.create-post{

    background:rgba(5,12,24,0.94);

    border:1px solid #1599d6;

    border-radius:22px;

    padding:22px;

    box-shadow:
    0 0 10px rgba(22,181,255,0.12);
}

.create-post textarea{

    width:100%;
    height:120px;

    resize:none;

    border:none;
    outline:none;

    padding:16px;

    border-radius:16px;

    background:#09111d;

    color:white;

    border:1px solid #173650;

    margin-bottom:15px;

    font-family:Arial, sans-serif;
}

.create-post textarea::placeholder{
    color:#88a9bf;
}

/* ===== ACTIONS ===== */

.post-actions{

    display:flex;
    justify-content:space-between;
}

.post-actions button{

    padding:12px 20px;

    border:none;

    border-radius:14px;

    background:#11253b;

    color:#73dcff;

    cursor:pointer;

    transition:
    background 0.2s,
    transform 0.2s;
}

.post-actions button:hover{

    background:#16b5ff;

    color:black;

    transform:translateY(-2px);
}

/* ===== POST ===== */

.post{

    background:rgba(5,12,24,0.96);

    border:1px solid #1599d6;

    border-radius:22px;

    overflow:hidden;

    box-shadow:
    0 0 10px rgba(22,181,255,0.1);
}

/* ===== POST HEADER ===== */

.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;
}

.post-header h4{

    color:#73dcff;

    margin-bottom:4px;
}

.post-header span{

    color:#8ea8bc;

    font-size:0.8rem;
}

/* ===== POST TEXT ===== */

.post p{

    padding:0 20px 20px;

    line-height:1.6;
}

/* ===== POST IMAGE ===== */

.post-image{

    width:100%;

    max-height:550px;

    object-fit:cover;

    border-top:1px solid #173650;
    border-bottom:1px solid #173650;
}

/* ===== BUTTONS ===== */

.post-buttons{

    display:flex;
    justify-content:space-around;

    padding:18px;
}

.post-buttons button{

    width:30%;

    padding:12px;

    border:none;

    border-radius:14px;

    background:#11253b;

    color:#73dcff;

    cursor:pointer;

    transition:
    background 0.2s,
    transform 0.2s;
}

.post-buttons button:hover{

    background:#16b5ff;

    color:black;

    transform:translateY(-2px);
}

/* ======================================================
   EFECTOS LIGEROS
====================================================== */

/* borde fijo sin animación */

.card,
.post,
.create-post{

    position:relative;
}

.card::before,
.post::before,
.create-post::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:2px;

    background:linear-gradient(
    90deg,
    transparent,
    rgba(22,181,255,0.65),
    transparent
    );
}

/* ===== RESPONSIVE ===== */

@media(max-width:1000px){

    .main-container{

        grid-template-columns:1fr;
    }

    .profile-info{

        flex-direction:column;
        align-items:center;

        text-align:center;
    }

    .search-box input{

        width:220px;
    }
}

/* ===== MOBILE ===== */

@media(max-width:700px){

    .topbar{

        flex-wrap:wrap;

        height:auto;

        gap:15px;

        padding:15px;
    }

    .search-box{

        width:100%;
    }

    .search-box input{

        width:100%;
    }

    .banner{

        height:220px;
    }

    .profile-image img{

        width:140px;
        height:140px;
    }

    .profile-text h1{

        font-size:1.5rem;
    }

    .main-container{

        width:95%;
    }

    .post-buttons button{

        font-size:0.8rem;
    }
}

/* ======================================================
   NOTIFICATION PANEL
====================================================== */

.notification-panel{

    position:fixed;

    top:85px;
    right:20px;

    width:320px;

    background:rgba(5,12,24,0.96);

    border:1px solid #16b5ff;

    border-radius:20px;

    padding:20px;

    z-index:9999;

    display:none;

    box-shadow:
    0 0 20px rgba(22,181,255,0.2);
}

.notification-panel h3{

    color:#72dcff;

    margin-bottom:15px;
}

.notification-panel p{

    margin-bottom:12px;

    color:#d7ecff;

    line-height:1.5;
}

/* ===== COMMENTS ===== */

.comments-section{

    padding:15px;
}

.comment{

    background:#0e1d2e;

    border-radius:12px;

    padding:10px;

    margin-bottom:10px;

    color:#d7ecff;

    border:1px solid #163852;
}

/* ===== REACTION MENU ===== */

.reaction-menu{

    display:flex;

    gap:8px;

    margin-top:10px;
}

.reaction{

    padding:6px 10px;

    border-radius:10px;

    background:#10243b;

    cursor:pointer;

    transition:0.2s;
}

.reaction:hover{

    background:#16b5ff;

    color:black;
}

/* ======================================================
   FACEBOOK STYLE
====================================================== */

.post-info{

    padding:10px 20px;

    border-top:1px solid rgba(255,255,255,0.08);

    color:#72dcff;

    font-size:0.9rem;
}

/* ===== LIKE ===== */

.reaction-button.liked{

    color:#ff4b7d;

    font-weight:bold;
}

/* ===== COMMENTS ===== */

.comments-wrapper{

    display:none;

    padding:15px;

    border-top:1px solid rgba(255,255,255,0.08);
}

.show-comments{

    display:block;
}

/* ===== COMMENT INPUT ===== */

.comment-input-area{

    display:flex;

    gap:10px;

    margin-top:15px;
}

.comment-input{

    flex:1;

    padding:12px;

    border:none;

    border-radius:14px;

    background:#0f1c2b;

    color:white;
}

.send-comment{

    padding:12px 18px;

    border:none;

    border-radius:14px;

    background:#16b5ff;

    color:black;

    cursor:pointer;

    font-weight:bold;
}

/* ===== COMMENT ===== */

.comment{

    display:flex;

    gap:12px;

    margin-top:15px;

    background:#0d1825;

    padding:12px;

    border-radius:16px;
}

.comment img{

    width:42px;
    height:42px;

    border-radius:50%;

    object-fit:cover;
}

.comment p{

    margin-top:4px;

    color:#d7ecff;
}

/* ===== NOTIFICATIONS ===== */

.show-notifications{

    display:block !important;
}

/* ======================================
PROFILE TABS
====================================== */

.profile-tabs{

    width:90%;

    margin:auto;

    margin-top:25px;

    display:flex;
    gap:10px;

    flex-wrap:wrap;

    padding-bottom:20px;

    border-bottom:1px solid rgba(255,255,255,0.08);
}

.tab{

    padding:12px 20px;

    border:none;

    border-radius:14px;

    background:#102031;

    color:#72dcff;

    cursor:pointer;

    font-family:'Orbitron',sans-serif;

    transition:.2s;
}

.tab:hover{

    background:#16b5ff;

    color:black;
}

.tab.active{

    background:#16b5ff;

    color:black;

    font-weight:bold;
}

.notification-button{

    position:relative;
}

#notificationDot{

    position:absolute;

    top:5px;
    right:5px;

    width:10px;
    height:10px;

    border-radius:50%;

    background:red;

    display:none;
}