/* =============================================
   PROFILE PAGE - Forum Post Style
   ============================================= */

.profile-post {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: #1e2128;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    min-height: 600px;
}

/* ---- Left Sidebar ---- */
.profile-left-sidebar {
    background: linear-gradient(180deg, #181b22 0%, #1a1d24 100%);
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 28px 16px 24px;
    text-align: center;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.profile-avatar-wrap img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #6366f1;
    display: block;
}

.profile-online-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    border: 3px solid #181b22;
}

.profile-online-dot.offline {
    background: #475569;
}

.profile-uname {
    font-size: 20px;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.profile-role-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.profile-role-tag.role-admin { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.profile-role-tag.role-gmod { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.profile-role-tag.role-smod { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.profile-role-tag.role-member { background: rgba(99,102,241,0.15); color: #818cf8; }

/* All Ranks - Escrow page style */
.profile-all-ranks {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 10px 0 16px;
}

.escrow-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

.escrow-badge i {
    font-size: 12px;
}

.u-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #fff;
    text-transform: uppercase;
}

.u-badge i {
    font-size: 11px;
}

.u-title {
    font-size: 10px;
    color: #64748b;
}

.badge-seller {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.badge-prem {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-damagelab {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.3), 0 2px 8px rgba(245, 158, 11, 0.15);
    animation: premiumGlow 3s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.25), 0 2px 8px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.4), 0 2px 12px rgba(245, 158, 11, 0.25); }
}

.badge-admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.badge-gmod {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.badge-smod {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.badge-veteran {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.badge-verified {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.badge-researcher {
    background: linear-gradient(135deg, #fbbf24, #d97706);
}

.badge-developer {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.badge-contributor {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.badge-member {
    background: transparent;
    border: 2px solid #475569;
    color: #94a3b8;
}

/* Sidebar Stats */
.profile-sidebar-stats {
    margin-bottom: 16px;
}

.pstat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
}

.pstat-box {
    background: #252a35;
    border-radius: 6px;
    padding: 10px 6px;
    text-align: center;
}

.pstat-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.pstat-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.pstat-val.rep {
    color: #22c55e;
}

.pstat-single {
    background: #252a35;
    border-radius: 6px;
    padding: 10px 6px;
    text-align: center;
}

/* Social Icons */
.profile-social-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.profile-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #252a35;
    border: 1px solid rgba(255,255,255,0.06);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s;
    text-decoration: none;
}

.profile-social-btn:hover {
    background: #2a2f3a;
    color: #e2e8f0;
    border-color: rgba(255,255,255,0.1);
}

/* ---- Right Content ---- */
.profile-right-content {
    display: flex;
    flex-direction: column;
}

.profile-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.01);
}

.profile-member-since {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-header-right {
    display: flex;
    gap: 8px;
}

.pbtn-action {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

.pbtn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}

.pbtn-action.outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}

.pbtn-action.outline:hover {
    background: rgba(255,255,255,0.03);
    color: #e2e8f0;
    box-shadow: none;
}

.pbtn-action.icon-only {
    padding: 8px 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
}

/* Sections */
.profile-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #6366f1;
    font-size: 14px;
}

.profile-bio-text {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
}

/* Details Grid */
.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: #252a35;
    border-radius: 8px;
}

.detail-item > i {
    color: #6366f1;
    font-size: 16px;
    margin-top: 2px;
}

.detail-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

/* Recent Posts */
.profile-posts-list .profile-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.profile-post-item:last-child {
    border-bottom: none;
}

.post-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.post-item-icon.reply {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
}

.post-item-content {
    flex: 1;
    min-width: 0;
}

.post-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-item-meta {
    font-size: 11px;
    color: #475569;
    margin-top: 2px;
}

.post-item-stats {
    font-size: 12px;
    color: #475569;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* Warning Level */
.profile-warn-level {
    background: #252a35;
    border-radius: 8px;
    padding: 14px 18px;
}

.warn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.warn-header i {
    color: #f59e0b;
    margin-right: 6px;
}

.warn-pct {
    color: #22c55e;
    font-weight: 700;
}

.warn-bar-bg {
    height: 6px;
    background: #1a1d23;
    border-radius: 3px;
    overflow: hidden;
}

.warn-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #22c55e);
    border-radius: 3px;
    transition: width 0.5s;
}

/* Locked Section (Marketplace + Threads) */
.locked-section {
    background: #252a35;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.locked-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.locked-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.locked-header h3 i {
    color: #6366f1;
    font-size: 14px;
}

.locked-tag {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.03);
    padding: 4px 10px;
    border-radius: 4px;
}

.locked-content {
    position: relative;
    min-height: 220px;
}

/* Marketplace Grid (behind blur) */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.mp-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.mp-cell:last-child { border-right: none; }

.mp-cell .mp-val {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.mp-cell .mp-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.5px;
}

/* Thread list (behind blur) */
.threads-list {
    padding: 10px 18px;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.thread-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.thread-row:last-child { border-bottom: none; }

.thread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.thread-title {
    flex: 1;
    height: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}

.thread-meta {
    width: 70px;
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

/* Locked Overlay */
.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.locked-box {
    text-align: center;
}

.locked-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: #6366f1;
}

.locked-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 4px;
}

.locked-box p {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 14px;
}

.locked-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.locked-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    color: #fff;
}

/* (old blur styles removed - now using locked-section pattern) */

/* Login prompt */
.profile-login-prompt {
    text-align: center;
    padding: 32px 20px;
    color: #475569;
}

.profile-login-prompt i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    color: #2a2f3a;
}

.profile-login-prompt p {
    font-size: 13px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .profile-post {
        grid-template-columns: 1fr;
    }
    .profile-left-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .profile-details-grid {
        grid-template-columns: 1fr;
    }
    .profile-content-header {
        flex-direction: column;
        gap: 12px;
    }
}
