/* ==========================================================
   VALRYN PROFILE
   profile.css
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --bg:#05070d;
    --panel:#101827;
    --panel2:#161f32;

    --border:#233250;

    --primary:#2b6fff;
    --primaryHover:#4b82ff;

    --text:#ffffff;
    --muted:#9aa8c4;

    --danger:#ef4444;

    --radius:18px;

}

body{

    font-family:Inter,Arial,sans-serif;

    background:var(--bg);

    color:var(--text);

    min-height:100vh;

    overflow-x:hidden;

}

.profile-background{

    position:fixed;

    inset:0;

    background:
    linear-gradient(rgba(5,7,13,.90),rgba(5,7,13,.95)),
    url("../assets/images/V-HQ.jpg");

    background-size:cover;

    background-position:center;

    z-index:-2;

}

.profile-background::after{

    content:"";

    position:absolute;

    inset:0;

    backdrop-filter:blur(10px);

}

.topbar{

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 30px;

    background:rgba(16,24,39,.92);

    border-bottom:1px solid var(--border);

    backdrop-filter:blur(20px);

}

.brand{

    display:flex;

    align-items:center;

    gap:12px;

    color:#fff;

    text-decoration:none;

}

.brand img{

    width:50px;

    height:50px;

}

.brand span{

    font-size:1.3rem;

    font-weight:700;

}

.back-button{

    color:var(--primary);

    text-decoration:none;

    font-weight:600;

}

.profile-page{

    max-width:1100px;

    margin:40px auto;

    padding:0 25px;

}

.profile-card,
.information-card,
.account-card{

    background:rgba(16,24,39,.92);

    border:1px solid var(--border);

    border-radius:18px;

    backdrop-filter:blur(18px);

    padding:35px;

    margin-bottom:25px;

}

.profile-card{

    text-align:center;

}

.profile-avatar{

    width:120px;

    height:120px;

    margin:0 auto 20px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--primary),
        #6aa5ff
    );

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:3rem;

    font-weight:700;

}

#profileRole{

    color:var(--muted);

    margin-top:10px;

}

.information-card h2,
.account-card h2{

    margin-bottom:25px;

}

.profile-grid{

    display:grid;

    grid-template-columns:repeat(2,minmax(0,1fr));

    gap:20px;

}

.info-box{

    background:var(--panel2);

    border:1px solid var(--border);

    border-radius:14px;

    padding:20px;

    min-width:0;

}

.info-box label{

    display:block;

    color:var(--muted);

    font-size:.9rem;

    margin-bottom:10px;

}

.info-box span{

    font-size:1.05rem;

    font-weight:600;

    overflow-wrap:anywhere;

}

.account-actions{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

}

.action-button,
.logout-button{

    flex:1;

    min-width:180px;

    padding:16px;

    border:none;

    border-radius:14px;

    text-align:center;

    text-decoration:none;

    font-size:15px;

    font-weight:700;

    cursor:pointer;

    transition:.3s;

}

.action-button{

    background:var(--primary);

    color:#fff;

}

.action-button:hover{

    background:var(--primaryHover);

    transform:translateY(-2px);

}

.logout-button{

    background:var(--danger);

    color:#fff;

}

.logout-button:hover{

    transform:translateY(-2px);

}

@media(max-width:768px){

    .profile-grid{

        grid-template-columns:minmax(0,1fr);

    }

    .account-actions{

        flex-direction:column;

    }

    .topbar{

        padding:0 18px;

    }

}
