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

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: var(--spacing-lg);
}

.profile-avatar-wrapper {
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: #000;
}

.profile-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.profile-info {
    flex: 1;
}

.profile-nickname {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-admin {
    background: #7c3aed;
    color: white;
}

.profile-level-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

.level-progress-bar {
    position: relative;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    border: 1px solid var(--border-dark);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #6366f1);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
}

.profile-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.profile-level {
    background: var(--accent-primary);
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.profile-points {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 500;
}

.profile-points-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
}

.profile-points-display .points-label {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-points-display .points-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
}

.profile-points-display .points-unit {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 500;
}

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

.btn-edit {
    padding: 10px 20px;
    font-size: 14px;
}

.profile-bio {
    margin-bottom: var(--spacing-lg);
}

/* 닉네임 변경 이력 */
.nickname-history {
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-dark);
}
.nickname-history h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nickname-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nickname-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}
.nh-date {
    color: var(--text-muted);
    font-size: 12px;
    min-width: 80px;
}
.nh-old {
    color: var(--text-secondary);
    text-decoration: line-through;
    opacity: 0.7;
}
.nh-arrow {
    color: var(--accent-primary);
}
.nh-new {
    color: var(--text-primary);
    font-weight: 600;
}

.profile-bio h4 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-bio p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-dark);
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: #000;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.profile-post-list,
.profile-comment-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.profile-post-item,
.profile-comment-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-post-item:hover,
.profile-comment-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.post-category {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 8px;
}

.post-title {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
}

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-post-title {
    font-weight: 500;
    color: var(--accent-primary);
    font-size: 13px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-content {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.profile-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.profile-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.profile-pagination .page-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.profile-pagination .page-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    font-weight: 600;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .profile-card {
        padding: var(--spacing-md);
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }

    .profile-avatar,
    .profile-avatar-img {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .profile-nickname {
        font-size: 1.25rem;
        justify-content: center;
    }

    .profile-info {
        width: 100%;
    }

    .profile-points-display {
        width: 100%;
        justify-content: center;
    }

    .level-progress-bar {
        width: 100%;
    }

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

    .btn-edit {
        width: 100%;
        margin-top: var(--spacing-sm);
    }

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

    .stat-value {
        font-size: 24px;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-radius: var(--radius-sm);
    }

    .profile-post-item,
    .profile-comment-item {
        padding: var(--spacing-sm);
    }

    .post-title {
        font-size: 14px;
    }
}
