/* ============================================================
   nibango Profile Page Styles
   ============================================================ */

.profile-page {
    max-width: 800px;
    margin: 0 auto;
}

/* ========== Profile Header ========== */
.profile-header {
    display: flex;
    gap: var(--sp-lg);
    align-items: flex-start;
    padding: var(--sp-xl);
    background-color: var(--bg-tertiary);
    border-radius: var(--r-lg);
    border: 1px solid var(--separator);
    margin-bottom: var(--sp-lg);
}

.profile-header__avatar {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--b-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header__avatar-initial {
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 600;
}

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

.profile-header__username {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--sp-xs);
}

.profile-header__verified {
    flex-shrink: 0;
}

.profile-header__location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: var(--sp-md);
}

.profile-header__stats {
    display: flex;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-sm);
}

.profile-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.profile-stat__value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-stat__label {
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-header__member-since {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ========== Badges ========== */
.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-lg);
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--separator);
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-badge img {
    border-radius: 2px;
}

/* ========== Section Title ========== */
.profile-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--sp-md);
}

/* ========== Reviews ========== */
.profile-reviews {
    margin-bottom: var(--sp-xl);
}

.profile-review {
    padding: var(--sp-md);
    background-color: var(--bg-tertiary);
    border-radius: var(--r-md);
    border: 1px solid var(--separator);
    margin-bottom: var(--sp-sm);
}

.profile-review__header {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-sm);
}

.profile-review__avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: var(--system-gray-5);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.profile-review__author {
    font-size: 14px;
    font-weight: 600;
}

.profile-review__stars {
    font-size: 12px;
    color: var(--system-orange);
    letter-spacing: 1px;
}

.profile-review__date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.profile-review__comment {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ========== Responsive ========== */
@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-header__username {
        justify-content: center;
    }

    .profile-header__location {
        justify-content: center;
    }

    .profile-header__stats {
        justify-content: center;
    }
}

/* ========== Private Profile (My Profile) ========== */
.profile-avatar-lg {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--b-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    font-weight: 600;
    margin: 0 auto var(--sp-md);
}

.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-username {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: var(--sp-sm);
}

.profile-stats-row {
    display: flex;
    justify-content: center;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-sm);
}

.profile-member-since {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
}

.profile-bio {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--sp-sm);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profile-section {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--separator);
    border-radius: var(--r-lg);
    padding: var(--sp-lg);
    margin-bottom: var(--sp-lg);
}

.profile-section__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--sp-md);
}

.profile-form .form-group {
    margin-bottom: var(--sp-md);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}