
/* =====================================================
   QA USER PROFILE PAGE
===================================================== */

.profile-wrapper{
    margin-top:25px;
    margin-bottom:30px;
}

/* =====================================================
   HEADER
===================================================== */

.profile-header{
    background:linear-gradient(135deg,#1e293b,#334155);
    border-radius:14px 14px 0 0;
    padding:35px;
    color:#fff;
    position:relative;
    overflow:hidden;
}

.profile-header:before{
    content:'';
    position:absolute;
    right:-60px;
    top:-60px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:rgba(255,255,255,0.04);
}

.profile-user{
    display:flex;
    align-items:center;
    position:relative;
    z-index:2;
}

.profile-avatar{
    width:95px;
    height:95px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid rgba(255,255,255,0.15);
    margin-right:22px;
    background:#fff;
}

.profile-name{
    font-size:34px;
    font-weight:700;
    margin-bottom:6px;
    color:#fff;
}

.profile-meta{
    display:flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,0.85);
    font-size:15px;
    margin-bottom:14px;
}

.profile-reputation{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:rgba(255,255,255,0.08);
    padding:8px 15px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
}

.profile-reputation i{
    color:#facc15;
}

.profile-email{
    margin-top:12px;
    font-size:13px;
    color:#dbeafe;
}

.profile-btn{
    border:none;
    border-radius:8px;
    padding:8px 14px;
    font-size:14px;
    margin-top:14px;
    font-weight:600;
}

.profile-btn-light{
    background:#fff;
    color:#111827;
}

/* =====================================================
   MENU
===================================================== */

.user-menu{
    background:#fff;
    border:1px solid #e4e6e8;
    border-top:none;
    border-radius:0 0 12px 12px;
    overflow:hidden;
    margin-bottom:25px;
}

.user-menu .nav-link{
    border:none !important;
    padding:16px 24px;
    color:#6a737c;
    font-weight:600;
}

.user-menu .nav-link:hover{
    color:#7c3aed;
    background:#faf5ff;
}

.user-menu .nav-link.active{
    color:#7c3aed;
    border-bottom:3px solid #7c3aed !important;
}

/* =====================================================
   CARD
===================================================== */

.profile-card{
    background:#fff;
    border:1px solid #e4e6e8;
    border-radius:12px;
    overflow:hidden;
    margin-bottom:18px;
    transition:0.2s;
}

.profile-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 15px rgba(0,0,0,0.05);
}

.profile-card .card-body{
    padding:22px;
}

.card-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:14px;
    color:#111827;
}

.card-title i{
    color:#7c3aed;
    margin-right:8px;
}

.profile-content{
    font-size:15px;
    color:#374151;
    line-height:1.8;
}

/* =====================================================
   STATS
===================================================== */

.stat-card{
    background:#fff;
    border:1px solid #e4e6e8;
    border-radius:12px;
    text-align:center;
    padding:22px 15px;
    height:100%;
    transition:0.2s;
}

.stat-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 14px rgba(0,0,0,0.05);
}

.stat-icon{
    width:48px;
    height:48px;
    border-radius:50%;
    background:#f3e8ff;
    color:#7c3aed;
    margin:0 auto 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.stat-title{
    font-size:14px;
    color:#6b7280;
    margin-bottom:5px;
}

.stat-value{
    font-size:28px;
    font-weight:700;
    color:#111827;
}

/* =====================================================
   BADGES
===================================================== */

.user-badge{
    display:inline-block;
    padding:7px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
}

.badge-gold{
    background:#facc15;
    color:#000;
}

.badge-silver{
    background:#cbd5e1;
    color:#111827;
}

.badge-bronze{
    background:#b45309;
    color:#fff;
}

/* =====================================================
   TAGS
===================================================== */

.profile-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.profile-tags span{
    background:#f3f4f6;
    color:#374151;
    border-radius:30px;
    padding:7px 14px;
    font-size:13px;
    font-weight:600;
}

/* =====================================================
   ACTIVITY
===================================================== */
.activity-list{
    list-style:none;
    padding:0;
    margin:0;
}

.activity-list li{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:14px 0;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
}

.activity-list li:last-child{
    border-bottom:none;
}

/* LEFT SIDE */
.activity-left{
    display:flex;
    align-items:center;
    gap:10px;
    color:#374151;
}

.activity-left i{
    width:16px;
    text-align:center;
    color:#7c3aed;
    font-size:14px;
}

/* RIGHT VALUE */
.activity-value{
    font-size:13px;
    font-weight:600;
    color:#111827;
}


/* =====================================================
   VOTES
===================================================== */

.vote-row{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid #f3f4f6;
    font-size:14px;
}

.vote-row:last-child{
    border-bottom:none;
}

.vote-up{
    color:#16a34a;
    font-weight:600;
}

.vote-down{
    color:#dc2626;
    font-weight:600;
}

/* =====================================================
   SHARE
===================================================== */

.share-toggle{
    cursor:pointer;
    color:#6b7280;
}
.share-buttons.active{
    display:flex;
}

.share-btn{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    transition:0.2s;
    border:none;
}

.share-btn:hover{
    transform:translateY(-2px);
    color:#fff;
}

.share-facebook{ background:#1877f2; }
.share-twitter{ background:#1da1f2; }
.share-whatsapp{ background:#25d366; }
.share-copy{ background:#6b7280; }

/* =====================================================
   WEBSITE
===================================================== */

.website-link{
    color:#7c3aed;
    text-decoration:none;
    font-weight:600;
}

.website-link:hover{
    text-decoration:underline;
}

/* =====================================================
   MOBILE
===================================================== */

@media(max-width:768px){

    .profile-user{
        flex-direction:column;
        text-align:center;
    }

    .profile-avatar{
        margin-right:0;
        margin-bottom:15px;
    }

    .profile-name{
        font-size:26px;
    }

    .user-menu .nav{
        flex-wrap:nowrap;
        overflow:auto;
    }

}
.user-menu .nav-link i{
    font-size:14px;
    opacity:0.9;
}
@media(max-width:768px){

    .user-menu{
        overflow-x:auto;
        overflow-y:hidden;
        -webkit-overflow-scrolling:touch;
    }

    .user-menu .nav{
        flex-wrap:nowrap;
        width:max-content;
        min-width:100%;
        justify-content:flex-start !important;
    }

    .user-menu .nav-item{
        flex:0 0 auto;
    }

    .user-menu .nav-link{
        white-space:nowrap;
        padding:14px 16px;
        font-size:14px;
    }

}

.badge-newbie{
    background:#e5e7eb;
    color:#374151;
}
