/* =============================================
   ORBES NODE — USER PROFILE (profile.css)
   ============================================= */

.profile-wrap {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── MAIN CARD ── */
.profile-header-card {
    display: flex;
    gap: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 28px;
}

.profile-avatar-block { flex-shrink: 0; }
.profile-avatar-img {
    width: 96px; height: 96px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--cyan);
}
.profile-avatar-placeholder {
    width: 96px; height: 96px; border-radius: 50%;
    background: rgba(233,30,99,.1); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); font-size: 2.2rem;
}

.profile-info-block { flex: 1; min-width: 0; }

.profile-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.profile-username { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.profile-username-sub { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }

.profile-role-badge {
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    padding: 4px 10px; border-radius: 20px;
}
.profile-role-badge.admin     { background: rgba(255,82,82,.12); color: #ff8a8a; }
.profile-role-badge.moderator { background: rgba(233,30,99,.12); color: var(--cyan); }
.profile-role-badge.user      { background: var(--hover-bg); color: var(--muted); }

.profile-edit-btn {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(233,30,99,.1); border: 1px solid rgba(233,30,99,.25);
    color: var(--text); padding: 7px 16px; border-radius: 8px;
    font-size: .82rem; font-weight: 700;
    transition: background .2s, border-color .2s;
}
.profile-edit-btn:hover { background: rgba(233,30,99,.18); border-color: var(--cyan); }

.profile-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.profile-stars { color: var(--yellow); font-size: .95rem; letter-spacing: 2px; }
.profile-rating-text { font-size: .82rem; color: var(--muted); font-weight: 600; }

.profile-bio { font-size: .9rem; color: var(--text-soft); line-height: 1.6; margin-bottom: 14px; }

.profile-stats-row { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; font-size: .82rem; color: var(--muted); }
.profile-stat strong { color: var(--text); font-weight: 800; }

.profile-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.profile-social-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--hover-bg); border: 1px solid var(--border-soft);
    color: var(--text-soft); padding: 7px 14px; border-radius: 20px;
    font-size: .8rem; font-weight: 600;
    transition: border-color .2s, color .2s;
}
.profile-social-btn:hover { border-color: var(--cyan); color: var(--text); }
.profile-social-btn i { color: var(--cyan); }

/* ── RATING CARD ── */
.profile-rate-card, .profile-reviews-card {
    background: var(--bg-elevated); border: 1px solid var(--border-soft);
    border-radius: 16px; padding: 26px 28px;
}
.profile-rate-card h3, .profile-reviews-card h3 {
    font-size: 1.05rem; font-weight: 800; margin-bottom: 16px;
    display: flex; align-items: center; gap: 10px;
}
.profile-rate-card h3 i, .profile-reviews-card h3 i { color: var(--cyan); }

.profile-login-note { font-size: .88rem; color: var(--muted); }
.profile-login-note a { color: var(--cyan); font-weight: 700; }

/* Star selector (inverted radios using flex-direction: row-reverse) */
.star-select {
    display: flex; flex-direction: row-reverse; gap: 6px;
    margin-bottom: 16px; width: fit-content;
}
.star-select input { display: none; }
.star-select label {
    font-size: 1.7rem; color: var(--border-soft); cursor: pointer; transition: color .15s;
}
.star-select label i { color: inherit; }
.star-select input:checked ~ label,
.star-select label:hover,
.star-select label:hover ~ label {
    color: var(--yellow);
}

/* ── REVIEWS LIST ── */
.profile-no-reviews { color: var(--muted); font-size: .88rem; }

.profile-reviews-list { display: flex; flex-direction: column; gap: 14px; }
.profile-review-item {
    background: var(--bg-card); border: 1px solid var(--border-soft);
    border-radius: 12px; padding: 16px 18px;
}
.profile-review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-review-author { font-weight: 700; color: var(--text); font-size: .88rem; }
.profile-review-author:hover { color: var(--cyan); }
.profile-review-stars { color: var(--yellow); font-size: .78rem; letter-spacing: 1px; }
.profile-review-date { font-size: .74rem; color: var(--muted); margin-left: auto; }
.profile-review-comment { font-size: .86rem; color: var(--text-soft); line-height: 1.6; }

.profile-review-delete-btn {
    background: rgba(255,82,82,.1); border: 1px solid rgba(255,82,82,.3);
    color: #ff8a8a; width: 26px; height: 26px; border-radius: 6px;
    cursor: pointer; font-size: .72rem; flex-shrink: 0;
    transition: background .15s, border-color .15s;
}
.profile-review-delete-btn:hover { background: rgba(255,82,82,.2); border-color: #ff5252; }

/* ── EDIT PROFILE ── */
.profile-edit-avatar-row {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-faint);
}

/* ── PROFILE SIDEBAR (My Profile / Edit Profile) ── */
.profile-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    align-items: flex-start;
}

.profile-layout > * {
    margin-top: 0;
}

.profile-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
    align-self: flex-start;
}

.profile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-soft);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.profile-sidebar-link i { color: var(--cyan); width: 16px; text-align: center; }
.profile-sidebar-link:hover { background: var(--hover-bg); color: var(--text); }
.profile-sidebar-link.active {
    background: rgba(233,30,99,.12);
    color: var(--text);
    border: 1px solid rgba(233,30,99,.25);
}

.profile-layout .profile-wrap {
    margin: 0;
    max-width: none;
    flex: 1;
    min-width: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
    .profile-header-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-name-row { justify-content: center; }
    .profile-edit-btn { margin-left: 0; }
    .profile-stats-row { justify-content: center; }
    .profile-social-row { justify-content: center; }
    .profile-edit-avatar-row { flex-direction: column; text-align: center; }
    .profile-review-date { margin-left: 0; }

    .profile-layout { flex-direction: column; }
    .profile-sidebar {
        width: 100%;
        flex-direction: row;
        position: static;
        overflow-x: auto;
    }
}